Quantcast
Viewing all articles
Browse latest Browse all 2279

Commented Issue: PowerShell Version Check Error [19739]

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: JeffPoste **

Hi Brian,

Sorry for the delay. I have included the info you asked for in the attached screen shot.

Jeff


Viewing all articles
Browse latest Browse all 2279

Trending Articles



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