[GH-ISSUE #746] No PowerShell usable to run the script #509

Closed
opened 2026-02-27 10:11:33 +03:00 by kerem · 4 comments
Owner

Originally created by @emmettlu on GitHub (Jan 3, 2025).
Original GitHub issue: https://github.com/massgravel/Microsoft-Activation-Scripts/issues/746

God, I just uninstalled Windows Powershell by a mistake completly in dir C:\Windows\System32.

It seems that reg delete "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /v "__PSLockdownPolicy" /f does not work.

What should I do to run the script successfully? PLEASE.

Originally created by @emmettlu on GitHub (Jan 3, 2025). Original GitHub issue: https://github.com/massgravel/Microsoft-Activation-Scripts/issues/746 God, I just uninstalled `Windows Powershell` by a mistake completly in dir `C:\Windows\System32`. It seems that `reg delete "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /v "__PSLockdownPolicy" /f` does not work. What should I do to run the script successfully? PLEASE.
kerem closed this issue 2026-02-27 10:11:33 +03:00
Author
Owner

@emmettlu commented on GitHub (Jan 3, 2025):

In the other word: Could somebody please pack your Windows Powershell in C:\Windows\System32 and send it to me?

Thanks in advance!

<!-- gh-comment-id:2568894581 --> @emmettlu commented on GitHub (Jan 3, 2025): In the other word: Could somebody please pack your `Windows Powershell` in `C:\Windows\System32` and send it to me? #### Thanks in advance!
Author
Owner

@awcator commented on GitHub (Jan 3, 2025):

consider installing powershell
https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-windows?view=powershell-7.4

<!-- gh-comment-id:2568931706 --> @awcator commented on GitHub (Jan 3, 2025): consider installing powershell https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-windows?view=powershell-7.4
Author
Owner

@emmettlu commented on GitHub (Jan 3, 2025):

consider installing powershell https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-windows?view=powershell-7.4

It doesnot work, I need Windows Powershell instead of new Powershell.

<!-- gh-comment-id:2568989160 --> @emmettlu commented on GitHub (Jan 3, 2025): > consider installing powershell https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-windows?view=powershell-7.4 It doesnot work, I need `Windows Powershell` instead of new `Powershell`.
Author
Owner

@emmettlu commented on GitHub (Jan 3, 2025):

Thanks. But I am using a special windows version while I don't want to break it.

<!-- gh-comment-id:2569288972 --> @emmettlu commented on GitHub (Jan 3, 2025): Thanks. But I am using a special windows version while I don't want to break it.
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#509
No description provided.