This page explains how to install Powershell 2.0 on Windows XP SP2.
The official Powershell 2.0 download page lists the following requirements:
WinRM 2.0 and PowerShell 2.0 can be installed on the following supported operating systems:
- Windows Server 2008 with Service Pack 1
- Windows Server 2008 with Service Pack 2
- Windows Server 2003 with Service Pack 2
- Windows Vista with Service Pack 2
- Windows Vista with Service Pack 1
- Windows XP with Service Pack 3
- Windows Embedded POSReady 2009
- Windows Embedded for Point of Service 1.1
Windows PowerShell 2.0 requires the Microsoft .NET Framework 2.0 with Service Pack 1.
However it is possible to use and install Powershell 2.0 on Windows XP SP2. Simply follow the following steps in order:
set-alias cat get-contentInto
set-alias cat get-content -options allscope
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell]
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1]
"Install"=dword:00000001
"PID"="89383-100-0001260-04309"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\1033]
"Install"=dword:00000001
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\PowerShellEngine]
"ApplicationBase"="C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0"
"ConsoleHostAssemblyName"="Microsoft.PowerShell.ConsoleHost,Version=1.0.0.0,Culture=neutral,PublicKeyToken=31bf3856ad364e35,ProcessorArchitecture=msil"
"ConsoleHostModuleName"="\"C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Microsoft.PowerShell.ConsoleHost.dll\""
"PowerShellVersion"="2.0"
"PSCompatibleVersion"="1.0,2.0"
"RuntimeVersion"="v2.0.50727"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\PowerShellSnapIns]
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\ShellIds]
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\ShellIds\Microsoft.PowerShell]
"ExecutionPolicy"="Unrestricted"
"Path"="C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\powershell.exe"