You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have re-installed powershell through windows components menu, but still got this error
==== ERROR ====
Powershell is not installed in the system.
Aborting...
Something is wrong with PowerShell path in the system,
anyway for now, you can change the command to make it work.
find, for %%i in (powershell.exe) do if "%%~$path:i"=="" (
and replace it with, if not exist "%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" (
System path variables are messed up in your system that is why 'powershell' command is failing.
You can check if the path is correct are or not with this command, check if you see the highlighted text in your system.
As a temp fix for the script, you can add the below commands after line number 2 (In AIO and separate files version)
set "SysPath=%SystemRoot%\System32"
if exist "%SystemRoot%\Sysnative\reg.exe" (set "SysPath=%SystemRoot%\Sysnative")
set "Path=%SysPath%;%SystemRoot%;%SysPath%\Wbem;%SystemRoot%\System32\WindowsPowerShell\v1.0"
you also may forget about 'Windows Powershell' and install Powershell from the GitHub Powershell repo, that you can download from THIS page.
Enjoy!
AxelEric.
Something is wrong with PowerShell path in the system,
anyway for now, you can change the command to make it work.
find,
for %%i in (powershell.exe) do if "%%~$path:i"=="" (
and replace it with,
if not exist "%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" (
Originally posted by @WindowsAddict in #2 (comment)
The text was updated successfully, but these errors were encountered: