{"id":8281,"date":"2007-03-08T20:53:00","date_gmt":"2007-03-08T20:53:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/powershell\/2007\/03\/08\/installing-powershell-on-vistaquotlonghornquot-server\/"},"modified":"2019-02-18T13:16:48","modified_gmt":"2019-02-18T20:16:48","slug":"installing-powershell-on-vistaquotlonghornquot-server","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/powershell\/installing-powershell-on-vistaquotlonghornquot-server\/","title":{"rendered":"Installing PowerShell on Vista\/&#038;quot;Longhorn&#038;quot; Server"},"content":{"rendered":"<p class=\"MsoListParagraph\"><b><span><span><font face=\"Calibri\" size=\"3\">1.<\/font><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><\/b><b><font size=\"3\"><font face=\"Calibri\">I am new to PowerShell and would like to install it on my Vista machine.<\/font><\/font><\/b><\/p>\n<p class=\"MsoNormal\"><font size=\"3\"><font face=\"Calibri\">The following page <span>&nbsp;<\/span><\/font><\/font><a href=\"http:\/\/www.microsoft.com\/windowsserver2003\/technologies\/management\/powershell\/download.mspx\"><font face=\"Calibri\" size=\"3\">http:\/\/www.microsoft.com\/windowsserver2003\/technologies\/management\/powershell\/download.mspx<\/font><\/a><font face=\"Calibri\" size=\"3\"> gives you links to various PowerShell downloads. Choose the one that best matches your operating system, platform and language requirements.<\/font><\/p>\n<p class=\"MsoListParagraph\"><b><span><span><font face=\"Calibri\" size=\"3\">2.<\/font><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><\/b><b><font size=\"3\"><font face=\"Calibri\">I am using a \u201cLonghorn\u201d build greater than 5600 and I do not find an installable for my version of \u201cLonghorn\u201d server<\/font><\/font><\/b><\/p>\n<p class=\"MsoNormal\"><font face=\"Calibri\" size=\"3\">We currently support Windows PowerShell RC2 for \u201cLonghorn\u201d IDS (5600). This means that you will not be able to install Windows PowerShell on subsequent builds of \u201cLonghorn\u201d server as of now. We will soon provide you with installation options.<\/font><\/p>\n<p class=\"MsoListParagraph\"><b><span><span><font face=\"Calibri\" size=\"3\">3.<\/font><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><\/span><\/span><\/b><b><font size=\"3\"><font face=\"Calibri\">When I try to install Windows PowerShell I get the following error \u201cInstaller encountered an error: 0x8007177f . &nbsp;This machine is disabled for file encryption\u201d<\/font><\/font><\/b><\/p>\n<p><span>Windows PowerShell is being delivered as an update for Windows Vista. Currently this requires that \u201cEFS\u201d be enabled on the system. <\/span><\/p>\n<p><span>To enable EFS, press Windows-R and start gpedit.msc. Browse to Computer Configuration -&gt; Windows Settings -&gt; Security Settings -&gt; Public Key Policies -&gt; Encrypting File System -&gt; (right-click) Properties, and set the EFS state to \u201cAllow\u201d.<\/span><\/p>\n<p><span>To verify that the above worked, press Windows-R and start rsop.msc. Browse to the same path as above, and verify the setting.<\/span><\/p>\n<p><span>If your domain administrator has disabled EFS, then you will not be able to enable it locally. In that case, you will have to depart the domain, complete the install, then rejoin the domain<\/span><\/p>\n<p><span>Also, once the installation of PowerShell is complete, you can disable EFS. EFS is not required for the functioning of PowerShell, but only for its installation.<\/span><\/p>\n<p class=\"MsoListParagraph\"><b><span><span><font face=\"Calibri\" size=\"3\">4.<\/font><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><\/b><b><font size=\"3\"><font face=\"Calibri\">When I install Windows PowerShell I get an error \u201cThe update does not apply to your system\u201d<\/font><\/font><\/b><\/p>\n<p><span>The new installer technology in Windows Vista allows an update package to be installed only on a version of the OS for which it is targeted. Essentially, this means that if you have an update package targeted for version 6.0.5600.16386 (Vista RC2), it cannot be installed on a system which has a different version (say 6.0.6000.16386 \u2013 Vista RTM). So if you get this error it means that you are using an installer which is not targeted to your version of the OS. The following are some of the scenarios when this is most commonly encountered<\/span><\/p>\n<p><span><span>a.<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><span>Installing \u201cWindows PowerShell RC2 for Vista RC2\u201d on Vista RTM<\/span><\/p>\n<p><span><span>b.<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><span>Installing \u201cWindows PowerShell RTM for Vista RTM\u201d on Vista RC2<\/span><\/p>\n<p><span><span>c.<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><span>Installing \u201cWindows PowerShell RTM for Vista RTM\u201d on \u201cLonghorn\u201d server <\/span><\/p>\n<p><span><span>d.<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><span>Installing \u201cWindows PowerShell RC2 for Longhorn IDS (5600)\u201d on other \u201cLonghorn\u201d server builds<\/span><\/p>\n<p><span>&nbsp;<\/span><\/p>\n<p><span>There were some promotional copies of Vista RTM issued which have different build numbers on which the PowerShell installation will not work. To find the build number of a Vista\/\u201dLonghorn\u201d server installation do the following:<\/span><\/p>\n<p><span><span>a.<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><span>Open Regedt32 from \u201cstart search\u201d<\/span><\/p>\n<p><span><span>b.<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><span>Go to HKLM\\Software\\Microsoft\\Windows NT\\CurrentVersion<\/span><\/p>\n<p><span><span>c.<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><span>Obtain the value of \u201cBuildLabEx\u201d<\/span><\/p>\n<p><span><span>d.<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><span>The first portion of it will give you the build + revision number (for example if the value contained is 6000.16386.x86fre.vista_rtm.061101-2205, then build number is 6000 and revision number is 16386)<\/span><\/p>\n<p><span>&nbsp;<\/span><\/p>\n<p><span>From the download page mentioned in 1, try to locate an installer for your version of the OS. If it\u2019s not available, please be patient. We will be providing you with an installation option very soon.<\/span><\/p>\n<p><span>&nbsp;<\/span><\/p>\n<p class=\"MsoListParagraph\"><b><span><span><font face=\"Calibri\" size=\"3\">5.<\/font><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><\/span><\/span><\/b><b><font size=\"3\"><font face=\"Calibri\">I installed Vista RC2 and installed Windows PowerShell on it. I then upgraded my system to Vista RTM. I find that Windows PowerShell is lost on upgrade.<\/font><\/font><\/b><\/p>\n<p><span>The new installer technology in Windows Vista allows an update package to be installed only on a version of the OS for which it is targeted.<span>&nbsp; <\/span>Therefore, it is the expected behavior in Vista that when you upgrade from RC2 to RTM, optional components like Windows PowerShell are lost. In this case you will have to reinstall PowerShell.<\/span><\/p>\n<p><span>&nbsp;<\/span><\/p>\n<p class=\"MsoListParagraph\"><b><span><span><font face=\"Calibri\" size=\"3\">6.<\/font><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><\/span><\/span><\/b><b><font size=\"3\"><font face=\"Calibri\">I installed Windows PowerShell on my Windows XP\/Windows 2003 system. Now when I try to upgrade to Vista, I get a notification that PowerShell needs to be uninstalled before upgrade.<\/font><\/font><\/b><\/p>\n<p><span>Since the installer technologies in XP and Vista are different, it necessitates that PowerShell be uninstalled before you can upgrade to Vista. Once upgraded you can reinstall PowerShell on Vista. Please note that there is no guarantee that your custom snap ins will be retained on upgrade. You may be required to register them again. Also the event log location and format are different on Vista. Hence the event log entries will start afresh and will not be a continuation of the entries in XP\/2003<\/span><\/p>\n<p><span>&nbsp;<\/span><\/p>\n<p class=\"MsoListParagraph\"><b><span><span><font face=\"Calibri\" size=\"3\">7.<\/font><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><\/span><\/span><\/b><b><font size=\"3\"><font face=\"Calibri\">When I try to install Windows PowerShell I get an error \u201cThe resource loader failed to find MUI file<\/font><\/font><\/b><\/p>\n<p class=\"MsoNormal\"><font face=\"Calibri\" size=\"3\">Windows PowerShell is installed using Windows Update Standalone Installer. A change in Windows Update settings will cause this failure. The solution to this problem is to reboot the system twice (yes you read it right) and then reinstall PowerShell again.<\/font><\/p>\n<p class=\"MsoListParagraph\"><b><span><span><font face=\"Calibri\" size=\"3\">8.<\/font><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><\/b><b><font size=\"3\"><font face=\"Calibri\">I want to install\/uninstall Windows PowerShell on Vista from the command line<\/font><\/font><\/b><\/p>\n<p class=\"MsoNormal\"><font face=\"Calibri\" size=\"3\">Do the following for installation. Note that some of the operations require elevated privileges.<\/font><\/p>\n<p class=\"MsoListParagraph\"><span><span><font face=\"Calibri\" size=\"3\">a.<\/font><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><font face=\"Calibri\" size=\"3\">Copy the .MSU file to a temp location (copy c:\\installs\\Windows-6.0-KB928439.msu c:\\temp)<\/font><\/p>\n<p class=\"MsoListParagraph\"><span><span><font face=\"Calibri\" size=\"3\">b.<\/font><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><font face=\"Calibri\" size=\"3\">Extract contents using expand (expand \u2013f:* c:\\temp\\Windows-6.0-KB928439.msu c:\\temp\\)<\/font><\/p>\n<p class=\"MsoListParagraph\"><span><span><font face=\"Calibri\" size=\"3\">c.<\/font><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><font face=\"Calibri\" size=\"3\">Install using pkgmgr (start \/w pkgmgr \/ip \/m: c:\\temp\\Windows-6.0-KB928439.CAB)<\/font><\/p>\n<p class=\"MsoListParagraph\"><span><span><font face=\"Calibri\" size=\"3\">d.<\/font><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><font face=\"Calibri\" size=\"3\">Verify installation is successful by checking the errorlevel (echo %errorlevel%). It must be 0<\/font><\/p>\n<p class=\"MsoListParagraph\"><font face=\"Calibri\" size=\"3\">&nbsp;<\/font><\/p>\n<p class=\"MsoNormal\"><font face=\"Calibri\" size=\"3\">For uninstallation, do the following:<\/font><\/p>\n<p class=\"MsoListParagraph\"><span><span><font face=\"Calibri\" size=\"3\">a.<\/font><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><font face=\"Calibri\" size=\"3\">Copy the .MSU file to a temp location (copy c:\\installs\\Windows-6.0-KB928439.msu c:\\temp)<\/font><\/p>\n<p class=\"MsoListParagraph\"><span><span><font face=\"Calibri\" size=\"3\">b.<\/font><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><font face=\"Calibri\" size=\"3\">Extract contents using expand (expand \u2013f:* c:\\temp\\Windows-6.0-KB928439.msu c:\\temp\\)<\/font><\/p>\n<p class=\"MsoListParagraph\"><span><span><font face=\"Calibri\" size=\"3\">c.<\/font><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><font face=\"Calibri\" size=\"3\">Uninstall using pkgmgr (start \/w pkgmgr \/up \/m: c:\\temp\\Windows-6.0-KB928439.CAB)<\/font><\/p>\n<p class=\"MsoListParagraph\"><span><span><font face=\"Calibri\" size=\"3\">d.<\/font><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><font face=\"Calibri\" size=\"3\">Verify uninstallation is successful by checking the errorlevel (echo %errorlevel%). It must be 0<\/font><\/p>\n<p class=\"MsoNormal\"><font face=\"Calibri\" size=\"3\">&nbsp;<\/font><\/p>\n<p class=\"MsoListParagraphCxSpFirst\"><b><span><span><font face=\"Calibri\" size=\"3\">9.<\/font><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><\/b><b><font size=\"3\"><font face=\"Calibri\">I uninstalled Windows PowerShell using OCSetup, but I still find PowerShell in \u201cTurn Windows Features On\/Off\u201d and \u201cView Installed Updates\u201d<\/font><\/font><\/b><\/p>\n<p class=\"MsoListParagraphCxSpMiddle\"><font face=\"Calibri\" size=\"3\">&nbsp;<\/font><\/p>\n<p class=\"MsoListParagraphCxSpMiddle\"><font face=\"Calibri\" size=\"3\">OCSetup uninstall only disables PowerShell but does not completely remove it from the system. What this means is that, It will appear as though PowerShell is not available but, the package is retained internally so that you can turn it back on later.<\/font><\/p>\n<p class=\"MsoListParagraphCxSpMiddle\"><font face=\"Calibri\" size=\"3\">&nbsp;<\/font><\/p>\n<p class=\"MsoListParagraphCxSpMiddle\"><font face=\"Calibri\" size=\"3\">To find more information on what the setup actually does refer to our earlier posting \u201c<a class=\"\" href=\"http:\/\/blogs.msdn.com\/powershell\/archive\/2007\/01\/09\/behind-powershell-installer-for-windows-xp-windows-server-2003.aspx\">Behind PowerShell Installer<\/a>\u201d <\/font><\/p>\n<p class=\"MsoListParagraphCxSpMiddle\"><font face=\"Calibri\" size=\"3\"><\/font>&nbsp;<\/p>\n<p class=\"MsoListParagraphCxSpMiddle\"><font face=\"Calibri\" size=\"3\">Narayanan Lakshmanan [MSFT]<\/font><\/p>\n<p class=\"MsoListParagraphCxSpMiddle\"><font face=\"Calibri\" size=\"3\">Windows PowerShell Development<\/font><\/p>\n<p class=\"MsoListParagraphCxSpMiddle\"><font face=\"Calibri\" size=\"3\"><\/font>&nbsp;<\/p>\n<p class=\"MsoListParagraphCxSpLast\"><span><font face=\"Calibri\">This posting is provided &#8220;AS IS&#8221; and confers no rights or warranties.<\/font><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I am new to PowerShell and would like to install it on my Vista machine. The following page &nbsp;http:\/\/www.microsoft.com\/windowsserver2003\/technologies\/management\/powershell\/download.mspx gives you links to various PowerShell downloads. Choose the one that best matches your operating system, platform and language requirements. 2.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I am using a \u201cLonghorn\u201d build greater than 5600 and I do not find [&hellip;]<\/p>\n","protected":false},"author":600,"featured_media":13641,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[10],"class_list":["post-8281","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-powershell","tag-faq"],"acf":[],"blog_post_summary":"<p>1.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I am new to PowerShell and would like to install it on my Vista machine. The following page &nbsp;http:\/\/www.microsoft.com\/windowsserver2003\/technologies\/management\/powershell\/download.mspx gives you links to various PowerShell downloads. Choose the one that best matches your operating system, platform and language requirements. 2.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I am using a \u201cLonghorn\u201d build greater than 5600 and I do not find [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/posts\/8281","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/users\/600"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/comments?post=8281"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/posts\/8281\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/media\/13641"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/media?parent=8281"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/categories?post=8281"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/tags?post=8281"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}