Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: PowerShell 3.0 for Win 7 now available

09 Sep 2012   #21
karlsnooks

MS Windows 7 Ultimate SP1 64-bit
 
 

another quick question, did you ever click on that "genuine"/"activation" area of:
WIN +PAUSE keyombo | lower right ?

Sometimes we forget to do such when we roll our own and Win 7 thinks that it's not genuine.


My System SpecsSystem Spec
.
09 Sep 2012   #22
karlsnooks

MS Windows 7 Ultimate SP1 64-bit
 
 

Related to post # 20:
System requirements

Supported operating systems: Windows 7 Service Pack 1, Windows Server 2008 R2 SP1, Windows Server 2008 Service Pack 2
Windows Management Framework 3.0 requires Microsoft .NET Framework 4.0. You can install Microsoft .NET Framework 4.0 at: Download: Microsoft .NET Framework 4 (Web Installer) - Microsoft Download Center - Download Details
My System SpecsSystem Spec
09 Sep 2012   #23
Layback Bear

Windows 7 Pro. 64/SP-1
 
 

As far as I know. I check for updates several times a day and install them except for a nvidia driver I don't want. I did notice that the only have one Network Framwork.
Net Framework 4 Client Profile. Could that be a problem?
My System SpecsSystem Spec
.

09 Sep 2012   #24
Layback Bear

Windows 7 Pro. 64/SP-1
 
 

PowerShell 3.0 for Win 7 now available-legal-windows-7.png
Have a look at the lower right. It wasn't in the last picture.


My System SpecsSystem Spec
09 Sep 2012   #25
karlsnooks

MS Windows 7 Ultimate SP1 64-bit
 
 

The only thing unusual is that you haven't run the Experience Index yet, although I wouldn't expect that to make a difference.
My System SpecsSystem Spec
09 Sep 2012   #26
Layback Bear

Windows 7 Pro. 64/SP-1
 
 

You ask you will receive.

PowerShell 3.0 for Win 7 now available-just-karl.png


My System SpecsSystem Spec
09 Sep 2012   #27
karlsnooks

MS Windows 7 Ultimate SP1 64-bit
 
 

If you have PS 2.0 installed, then leave installed.

run following.

Script:
# ************************************************************
# Clear the EVENT LOGS
# ************************************************************
Get-WinEvent -ListLog * -Force | % { $_.logname;Wevtutil.exe cl $_.logname };Wevtutil.exe cl system

EXIT
EXIT

# ************************************************************ 
My System SpecsSystem Spec
09 Sep 2012   #28
karlsnooks

MS Windows 7 Ultimate SP1 64-bit
 
 

that was some housekeeping only but will simplify further looks at the event logs.

Reboot.

Try to install 3.0 again.

If install of 3.0 fais, then attach results of this script:

Script:
# ************************************************************
# Places CRITICALandERROREVENTS.TXT on your DESKTOP
#
# Displays 100 most recent critical and error events in a Grid View
# Writes 100 most recent critical and error events to CriticalAndErrorEvents.txt
#
# Change the $MAX value for more or fewer events
# Change the $Lwidth value to 254 for example for longer lines
# **********************************************************

$MAX 100
$LWidth 
132
$a 
Get-WinEvent -FilterHashtable @{logname='*';  level=1,2} `
-max 
$MAX  -verbose:$false -erroraction:silentlycontinue |
sort-object -property 
`
@{
expression="level";Descending=$false}, `
@{expression="timecreated";Descending=
$true} |
select-object -property leveldisplayname, timecreated, ID,  Message 
$a | out-gridview -Title "Critical and Error Events"
$a | format-table  @{Label = "Level"; Expression =  {$_.leveldisplayname} }, timecreated, ID, Message -wrap -auto |
out-file 
$env:userprofile\Desktop\CRITICALandERROREVENTS.TXT -width $Lwidth

EXIT
EXIT

# ************************************************************ 
My System SpecsSystem Spec
09 Sep 2012   #29
Layback Bear

Windows 7 Pro. 64/SP-1
 
 

01]
oration. All rights reserved.


ternal or external command,



internal or external command,


vent -FilterHashtable @{logname='*'; level=1,

rnal or external command,


erbose:$false -erroraction:silentlycontinue |
rrect.

property `
s an internal or external command,


"level";Descending=$false}, `
s an internal or external command,


"timecreated";Descending=$true} |
rrect.

-property leveldisplayname, timecreated, ID,

as an internal or external command,


idview -Title "Critical and Error Events"
nal or external command,


able @{Label = "Level"; Expression = {$_.lev
Message -wrap -auto |
rrect.

:userprofile\Desktop\CRITICALandERROREVENTS.TX

n internal or external command,



0
n internal or external command,



internal or external command,


vent -FilterHashtable @{logname='*'; level=1,

rnal or external command,


erbose:$false -erroraction:silentlycontinue |
rrect.

property `
s an internal or external command,


"level";Descending=$false}, `
s an internal or external command,


"timecreated";Descending=$true} |
rrect.

-property leveldisplayname, timecreated, ID,

as an internal or external command,


idview -Title "Critical and Error Events"
nal or external command,


able @{Label = "Level"; Expression = {$_.lev
Message -wrap -auto |
rrect.

:userprofile\Desktop\CRITICALandERROREVENTS.TX
----------------------
I hope that's what you wanted. It won't let me open and install it.
I tried it with your posted site using FireFox and I also tried it with Microsoft's site using I.E.9
My System SpecsSystem Spec
09 Sep 2012   #30
Layback Bear

Windows 7 Pro. 64/SP-1
 
 

C:\Windows\system32>'$LWidth' is not recognized as an internal or external comma
nd,
''$LWidth'' is not recognized as an internal or external command,
operable program or batch file.

C:\Windows\system32>operable program or batch file.
'operable' is not recognized as an internal or external command,
operable program or batch file.

C:\Windows\system32>
C:\Windows\system32>C:\Windows\system32>$a = Get-WinEvent -FilterHashtable @{log
name='*'; level=1,2
'C:\Windows\system32' is not recognized as an internal or external command,
operable program or batch file.

C:\Windows\system32>} `
'}' is not recognized as an internal or external command,
operable program or batch file.

C:\Windows\system32>'$a' is not recognized as an internal or external command,
''$a'' is not recognized as an internal or external command,
operable program or batch file.

C:\Windows\system32>operable program or batch file.
'operable' is not recognized as an internal or external command,
operable program or batch file.

C:\Windows\system32>
C:\Windows\system32>C:\Windows\system32>-max $MAX -verbose:$false -erroraction:
silentlycontinue |
The syntax of the command is incorrect.
C:\Windows\system32>The syntax of the command is incorrect.
'The' is not recognized as an internal or external command,
operable program or batch file.

C:\Windows\system32>
C:\Windows\system32>C:\Windows\system32>sort-object -property `
'C:\Windows\system32' is not recognized as an internal or external command,
operable program or batch file.

C:\Windows\system32>'sort-object' is not recognized as an internal or external c
ommand,
''sort-object'' is not recognized as an internal or external command,
operable program or batch file.

C:\Windows\system32>operable program or batch file.
'operable' is not recognized as an internal or external command,
operable program or batch file.

C:\Windows\system32>
C:\Windows\system32>C:\Windows\system32>@{expression="level";Descending=$false},
`
'C:\Windows\system32' is not recognized as an internal or external command,
operable program or batch file.

C:\Windows\system32>'{expression' is not recognized as an internal or external c
ommand,
''{expression'' is not recognized as an internal or external command,
operable program or batch file.

C:\Windows\system32>operable program or batch file.
'operable' is not recognized as an internal or external command,
operable program or batch file.

C:\Windows\system32>
C:\Windows\system32>C:\Windows\system32>@{expression="timecreated";Descending=$t
rue} |
The syntax of the command is incorrect.
C:\Windows\system32>The syntax of the command is incorrect.
'The' is not recognized as an internal or external command,
operable program or batch file.

C:\Windows\system32>
C:\Windows\system32>C:\Windows\system32>select-object -property leveldisplayname
, timecreated, ID,
'C:\Windows\system32' is not recognized as an internal or external command,
operable program or batch file.

C:\Windows\system32>Message
'Message' is not recognized as an internal or external command,
operable program or batch file.

C:\Windows\system32>'select-object' is not recognized as an internal or external
command,
''select-object'' is not recognized as an internal or external command,
operable program or batch file.

C:\Windows\system32>operable program or batch file.
'operable' is not recognized as an internal or external command,
operable program or batch file.

C:\Windows\system32>
C:\Windows\system32>C:\Windows\system32># $a | out-gridview -Title "Critical and
Error Events"
'C:\Windows\system32' is not recognized as an internal or external command,
operable program or batch file.

C:\Windows\system32>'#' is not recognized as an internal or external command,
''#'' is not recognized as an internal or external command,
operable program or batch file.

C:\Windows\system32>operable program or batch file.
'operable' is not recognized as an internal or external command,
operable program or batch file.

C:\Windows\system32>
C:\Windows\system32>C:\Windows\system32>$a | format-table @{Label = "Level"; Ex
pression = {$_.leve
'C:\Windows\system32' is not recognized as an internal or external command,
operable program or batch file.

C:\Windows\system32>ldisplayname} }, timecreated, ID, Message -wrap -auto |
The syntax of the command is incorrect.

C:\Windows\system32>The syntax of the command is incorrect.
'The' is not recognized as an internal or external command,
operable program or batch file.

C:\Windows\system32>
C:\Windows\system32>C:\Windows\system32>out-file $env:userprofile\Desktop\CRITIC
ALandERROREVENTS.TXT
'C:\Windows\system32' is not recognized as an internal or external command,
operable program or batch file.

C:\Windows\system32> -width $Lwidth
'-width' is not recognized as an internal or external command,
operable program or batch file.

C:\Windows\system32>'out-file' is not recognized as an internal or external comm
and,
''out-file'' is not recognized as an internal or external command,
operable program or batch file.

C:\Windows\system32>operable program or batch file.
'operable' is not recognized as an internal or external command,
operable program or batch file.

C:\Windows\system32>
C:\Windows\system32>C:\Windows\system32>
The syntax of the command is incorrect.
C:\Windows\system32>C:\Windows\system32>EXIT$MAX = 100
'C:\Windows\system32' is not recognized as an internal or external command,
operable program or batch file.

C:\Windows\system32>'EXIT$MAX' is not recognized as an internal or external comm
and,
''EXIT$MAX'' is not recognized as an internal or external command,
operable program or batch file.

C:\Windows\system32>operable program or batch file.
'operable' is not recognized as an internal or external command,
operable program or batch file.

C:\Windows\system32>
C:\Windows\system32>C:\Windows\system32>$LWidth = 132
'C:\Windows\system32' is not recognized as an internal or external command,
operable program or batch file.

C:\Windows\system32>'$LWidth' is not recognized as an internal or external comma
nd,
''$LWidth'' is not recognized as an internal or external command,
operable program or batch file.

C:\Windows\system32>operable program or batch file.
'operable' is not recognized as an internal or external command,
operable program or batch file.

C:\Windows\system32>
C:\Windows\system32>C:\Windows\system32>$a = Get-WinEvent -FilterHashtable @{log
name='*'; level=1,2
'C:\Windows\system32' is not recognized as an internal or external command,
operable program or batch file.

C:\Windows\system32>} `
'}' is not recognized as an internal or external command,
operable program or batch file.

C:\Windows\system32>'$a' is not recognized as an internal or external command,
''$a'' is not recognized as an internal or external command,
operable program or batch file.

C:\Windows\system32>operable program or batch file.
'operable' is not recognized as an internal or external command,
operable program or batch file.

C:\Windows\system32>
C:\Windows\system32>C:\Windows\system32>-max $MAX -verbose:$false -erroraction:
silentlycontinue |
The syntax of the command is incorrect.
C:\Windows\system32>The syntax of the command is incorrect.
'The' is not recognized as an internal or external command,
operable program or batch file.

C:\Windows\system32>
C:\Windows\system32>C:\Windows\system32>sort-object -property `
'C:\Windows\system32' is not recognized as an internal or external command,
operable program or batch file.

C:\Windows\system32>'sort-object' is not recognized as an internal or external c
ommand,
''sort-object'' is not recognized as an internal or external command,
operable program or batch file.

C:\Windows\system32>operable program or batch file.
'operable' is not recognized as an internal or external command,
operable program or batch file.

C:\Windows\system32>
C:\Windows\system32>C:\Windows\system32>@{expression="level";Descending=$false},
`
'C:\Windows\system32' is not recognized as an internal or external command,
operable program or batch file.

C:\Windows\system32>'{expression' is not recognized as an internal or external c
ommand,
''{expression'' is not recognized as an internal or external command,
operable program or batch file.

C:\Windows\system32>operable program or batch file.
'operable' is not recognized as an internal or external command,
operable program or batch file.

C:\Windows\system32>
C:\Windows\system32>C:\Windows\system32>@{expression="timecreated";Descending=$t
rue} |
The syntax of the command is incorrect.
C:\Windows\system32>The syntax of the command is incorrect.
'The' is not recognized as an internal or external command,
operable program or batch file.

C:\Windows\system32>
C:\Windows\system32>C:\Windows\system32>select-object -property leveldisplayname
, timecreated, ID,
'C:\Windows\system32' is not recognized as an internal or external command,
operable program or batch file.

C:\Windows\system32>Message
'Message' is not recognized as an internal or external command,
operable program or batch file.

C:\Windows\system32>'select-object' is not recognized as an internal or external
command,
''select-object'' is not recognized as an internal or external command,
operable program or batch file.

C:\Windows\system32>operable program or batch file.
'operable' is not recognized as an internal or external command,
operable program or batch file.

C:\Windows\system32>
C:\Windows\system32>C:\Windows\system32># $a | out-gridview -Title "Critical and
Error Events"
'C:\Windows\system32' is not recognized as an internal or external command,
operable program or batch file.

C:\Windows\system32>'#' is not recognized as an internal or external command,
''#'' is not recognized as an internal or external command,
operable program or batch file.

C:\Windows\system32>operable program or batch file.
'operable' is not recognized as an internal or external command,
operable program or batch file.

C:\Windows\system32>
C:\Windows\system32>C:\Windows\system32>$a | format-table @{Label = "Level"; Ex
pression = {$_.leve
'C:\Windows\system32' is not recognized as an internal or external command,
operable program or batch file.

C:\Windows\system32>ldisplayname} }, timecreated, ID, Message -wrap -auto |
The syntax of the command is incorrect.

C:\Windows\system32>The syntax of the command is incorrect.
'The' is not recognized as an internal or external command,
operable program or batch file.

C:\Windows\system32>
C:\Windows\system32>C:\Windows\system32>out-file $env:userprofile\Desktop\CRITIC
ALandERROREVENTS.TXT
'C:\Windows\system32' is not recognized as an internal or external command,
operable program or batch file.

C:\Windows\system32> -width $Lwidth
'-width' is not recognized as an internal or external command,
operable program or batch file.

C:\Windows\system32>'out-file' is not recognized as an internal or external comm
and,
''out-file'' is not recognized as an internal or external command,
operable program or batch file.

C:\Windows\system32>operable program or batch file.
'operable' is not recognized as an internal or external command,
operable program or batch file.

C:\Windows\system32>
C:\Windows\system32>C:\Windows\system32>
The syntax of the command is incorrect.
C:\Windows\system32>C:\Windows\system32>EXIT
My System SpecsSystem Spec
Reply

 PowerShell 3.0 for Win 7 now available




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Powershell
I was running a script on my 32bit OS that opened up IE and logged me onto my company's vpn. I am now using 64bit OS and My company's vpn does not like 64bit IE. (firefox and chrome are also iffy with our vpn, IE is the only 'official one they support'). When the script runs now on my 64bit os....
General Discussion
Powershell get-acl help
Hi, I was thinking of making a script for powershell, but it was harder than i thought. I'am a beginner of the beginners when it comes to powershell, so i was wondering if any of you could help me (or maybe make me one) with making one. This is what i was thinking of(not sure if this is even...
Software
powershell 1 or 2?
i thought windows 7 pro comes with powershell 2 installed.... when i look in sys32 folder it shows powershell 1... also when powershell is activated it is version 1.... is this correct or what is going on... system is fully updated... win 7 pro 64 bit thanks :(
General Discussion
do you use powershell?
do you use and/or have any cmdlets ?? such as: Get-counter Get-counter -Counter "\Processor(_Total)\% Processor Time" -SampleInterval 2 -MaxSamples 10
General Discussion


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 19:34.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App