Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Windows PowerShell 2.0 + WinRM 2.0 for XP and Server 2003

850 views
Skip to first unread message

IT Staff

unread,
Nov 24, 2009, 10:13:16 PM11/24/09
to
Released on October 27th : Windows PowerShell 2.0 + WinRM 2.0 for XP and
Server 2003

Description of the Windows Management Framework on Windows XP, Windows
Server 2003, Windows Vista, and Windows Server 2008

http://support.microsoft.com/kb/968929

==================================================================================================

I received this from Microsoft . I am using xp with powershell 1.0. and i
install the 32 bit package over my xp workstation.

Does it mean i m now on powershell 2.0 ?

Is there a way to determine powershell version from shell ?


Al Fansome

unread,
Nov 24, 2009, 10:23:12 PM11/24/09
to
Try

help about_Windows_PowerShell_2.0

this should work, and the corresponding helpfile

$pshome\about_Windows_PowerShell_2.0.help.txt

should exist. Note that $pshome will still be

C:\WINDOWS\system32\WindowsPowerShell\v1.0

even though your are running 2.0.

Mike Pfeiffer

unread,
Nov 25, 2009, 2:07:01 AM11/25/09
to
you can verify by checking $host.version

[PS] $host.version

Major Minor Build Revision
----- ----- ----- --------
2 0 -1 -1

"IT Staff" wrote:

> .
>

Shay Levy [MVP]

unread,
Nov 25, 2009, 4:53:16 AM11/25/09
to
Check for the $PSVersionTable automatic variable. If it exists you're running
v2.

If($PSVersionTable)
{
"v2 detected"
$PSVersionTable
}
else
{
"v1 detected"
}


---
Shay Levy
Windows PowerShell MVP
http://blogs.microsoft.co.il/blogs/ScriptFanatic
PowerShell Toolbar: http://tinyurl.com/PSToolbar

IS> Released on October 27th : Windows PowerShell 2.0 + WinRM 2.0 for
IS> XP and Server 2003
IS>
IS> Description of the Windows Management Framework on Windows XP,
IS> Windows Server 2003, Windows Vista, and Windows Server 2008
IS>
IS> http://support.microsoft.com/kb/968929
IS>
IS> ====================================================================
IS> ==============================
IS>
IS> I received this from Microsoft . I am using xp with powershell 1.0.
IS> and i install the 32 bit package over my xp workstation.
IS>
IS> Does it mean i m now on powershell 2.0 ?
IS>
IS> Is there a way to determine powershell version from shell ?
IS>


alexandair

unread,
Nov 27, 2009, 9:33:38 AM11/27/09
to
A function Get-PSVersion that could help (http://powershell.com/cs/
media/p/2617.aspx):

# If the $PSVersionTable variable doesn't exist, then you are running
V1.
# If it does exist, then the version will be available as
$PSVersionTable.PSVersion.

function Get-PSVersion {
if (test-path variable:psversiontable) {$psversiontable.psversion}
else {[version]"1.0.0.0"}
}

-aleksandar
http://powershellers.blogspot.com


On Nov 25, 10:53 am, Shay Levy [MVP] <n...@addre.ss> wrote:
> Check for the $PSVersionTable automatic variable. If it exists you're running
> v2.
>
> If($PSVersionTable)
> {
>   "v2 detected"
>   $PSVersionTable}
>
> else
> {
>   "v1 detected"
>
> }
>
> ---
> Shay Levy

> Windows PowerShell MVPhttp://blogs.microsoft.co.il/blogs/ScriptFanatic

0 new messages