[GH-ISSUE #13] > I have re-installed powershell through windows components menu, but still got this error #11

Closed
opened 2026-02-27 09:16:15 +03:00 by kerem · 2 comments
Owner

Originally created by @Rushy-p on GitHub (Dec 14, 2020).
Original GitHub issue: https://github.com/massgravel/Microsoft-Activation-Scripts/issues/13

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" (

Originally posted by @WindowsAddict in https://github.com/massgravel/Microsoft-Activation-Scripts/issues/2#issuecomment-695278853

Originally created by @Rushy-p on GitHub (Dec 14, 2020). Original GitHub issue: https://github.com/massgravel/Microsoft-Activation-Scripts/issues/13 > 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" (` _Originally posted by @WindowsAddict in https://github.com/massgravel/Microsoft-Activation-Scripts/issues/2#issuecomment-695278853_
kerem closed this issue 2026-02-27 09:16:15 +03:00
Author
Owner

@Rushy-p commented on GitHub (Dec 14, 2020):

mas

getting this error after changing command.

<!-- gh-comment-id:744160784 --> @Rushy-p commented on GitHub (Dec 14, 2020): ![mas](https://user-images.githubusercontent.com/17960965/102041028-7eacdc00-3e22-11eb-9e10-58cdc19d6dfe.PNG) getting this error after changing command.
Author
Owner

@AxelEric commented on GitHub (Dec 20, 2020):

Hey there..

you also may forget about 'Windows Powershell' and install Powershell from the GitHub Powershell repo, that you can download from THIS page.
Enjoy!
AxelEric.

<!-- gh-comment-id:748550081 --> @AxelEric commented on GitHub (Dec 20, 2020): ## Hey there.. you also may forget about 'Windows Powershell' and install Powershell from the GitHub Powershell repo, that you can download from [THIS](https://github.com/PowerShell/PowerShell/releases/tag/v7.1.0) page. Enjoy! AxelEric.
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Microsoft-Activation-Scripts#11
No description provided.