Manual Installation of PowerShell RTM on Vista RTM
I’m impatient, and I can’t wait two months for a delay of PowerShell RTM to show up on Windows Vista RTM (which I now have running solidly on my new $600 El Cheapo laptop).
Here’s how I got PowerShell running on Vista RTM. I have no idea whether it’s a stable manual install or whether tons of features are missing, all I know is that I got powershell.exe to give me a prompt. This is completely unsupported by Microsoft and might mess things up on your Vista RTM computer once Microsoft releases the official build–you will have to manually uninstall by doing these steps in reverse.
[UPDATE (12/17/2006):] Looks like someone found a better way.. http://gaurhothw.spaces.live.com/blog/cns!52B0837064D0B275!106.entry
This assumes that you are using Vista RTM 32-bit.
1. From a machine running XP SP2 with PowerShell RTM installed, copy the following directories with their contents to Windows Vista RTM.
- C:\Program Files\Reference Assemblies\Microsoft\WindowsPowerShell
NOTE: Some people are saying that the Reference Assemblies directory is invalid. Please view my 11/29/2006 comment in the comments (click on the Comments link). Someone found that they should be in C:\Windows\Assembly. I guess I found them in Program Files because I had previously installed a beta and that path got locked by way of a registry key.
2. Add the DLLs in the directory C:\Program Files\Reference Assemblies\Microsoft\WindowsPowerShell\v1.0 to the GAC by using "gacutil /i assembly.dll" for each DLL (replacing "assembly.dll" with the filename).
3. Download, extract, and execute the registry set from the URL below. This set is basically all instances of "PowerShell" I could find in my XP registry… unfortunately, it also includes some old Windows SDK CTP references that the Windows SDK CTP uninstaller did not clean out. No harm done, just adds useless junk to the registry.
4. Start PowerShell from C:\Windows\System32\WindowsPowerShell\v1.0\PowerShell.exe
If I forgot to list something in this list, you’re on your own.
I had added a shortcut to PowerShell on my XP SP2 QuickLaunch toolbar. I copied the shortcut file from the XP environment to my Vista environment (this brings me the width/height/color settings). Still to-do: Be sure to ngen all the assemblies for improved performance.