Quantcast
Channel: AutoSPInstaller
Viewing all articles
Browse latest Browse all 2279

Commented Issue: PowerShell Version Check Error [19739]

$
0
0
In AutoSPInstallerLaunch.bat in Windows Server 2012 it was incorrectly telling me my PowerShell version was 1 and terminating the script.
Running get-host confirmed powershell was version 3.

The line that was causing the error was line 44:
"%SYSTEMROOT%\system32\windowspowershell\v1.0\powershell.exe" $host.Version.Major | find "1" >nul

When this ran it found a 1 in the instanceID which was part of the string that got returned even though the string reported version 3.0 at the end.

I changed the line to:
"%SYSTEMROOT%\system32\windowspowershell\v1.0\powershell.exe" $host.Version.Major | find "1.0" >nul
and it ran correctly.

I hope this helps correct a small issue before others encounter it.
Jeff Poste
Comments: ** Comment from web user: mikeruberg **

Do you have a custom PowerShell profile? I ran into the same problem but when I deleted my custom profile, the problem went away. After the install, I just added my custom profile back.


Viewing all articles
Browse latest Browse all 2279

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>