PowerShell will be a helpful tool for you if you want to run scripts and commands on your Windows computer to alter various settings and features. There may be several reasons you want to tweak the settings, like, if you want to manage some feature, troubleshoot problems, or automate any task.
Although this software makes all these tasks hassle-free, you might sometimes want to disable it on your computer. For instance, you can prevent executing malicious commands by disabling PowerShell. You might also want to disable it to comply with the company policies.
No matter the reason, you have several ways you can use to disable PowerShell on your computer. This risewindows article will discuss all these different ways to achieve that.
How to Turn Off PowerShell on Windows 11 or 10 using Security Policy?
Use the following steps to disable PowerShell on Windows 11 or 10 through Security Policy:-
Step 1: First, go to the Local Security Policy.
You can do that from the taskbar on your screen. Next, click on the
Step 2: Open the
If there isn’t any category in the “Software Restriction Policies” section, right-click on it and go to the
The
Step 3: Go to the New Hash Rule option by right-clicking on the Additional Rules.
Step 4: Open the “New Hash Rule” window, and click on the
Step 5: Once you do the above steps, File Explorer will appear on your screen. Browse the following path:-
%SystemRoot%\system32\WindowsPowerShell\v1.0
Next, go to the
Step 6: Click on
Step 7: Click on
Step 8: Click on
Step 9: Click on the
Step 10: Now, as the “New Hash Rule” window option, click on
Step 11: Now, as the File Explorer window shows up, browse the following:-
%SystemRoot%\SysWOW64\WindowsPowerShell\v1.0
Next, choose the
Step 13: Click on
Step 14: Click on
Step 15: Navigate to the following path if you want to disable the PowerShell version 7 you’ve installed:-
%SystemRoot%\Program Files\PowerShell\7\pwsh.exe
Step 16: Select the
Step 17: Click on
Step 18: Press on
Step 19: Hit on
Step 20: Reboot your computer to apply the changes.
The 32-bit and 64-bit PowerShell will be disabled on your system after completing the above steps.
How to Disable Access to PowerShell ISE with Local Security Policy?
You still have restricted access to the command-line PowerShell tool using the above steps, and you can stop using the Powershell ISE interface. You the following steps to disable the access completely:-
Step 1: Open the Local Security Policy on your computer.
You can do that by going to the
Step 2: Expand the
Step 3: Go to the
Step 4: In the next window, click on the
Step 5: File Explorer will pop up on your screen. Type the following and press Enter:-
“%SystemRoot%\system32\WindowsPowerShell\v1.0”
Select the
Step 6: Click on
Step 7: Press on
Step 8: Hit on
Step 9: Again, Go to the
Step 10: Once the “New Hash Rule” window opens, click on
Step 11: Now, File Explorer will pop up on your screen. Type the following and press Enter:-
“%SystemRoot%\SysWOW64\WindowsPowerShell\v1.0”
Select the
Step 12: Click on
Step 13: Press on
Step 14: Hit on
Step 15: Reboot your system, and the changes will apply immediately, and 32-bit and 64-bit PowerShell ISE will be disabled on your computer.
How to Turn Off PowerShell on Windows 11 or 10 using Local Group Policy Editor?
Use the following steps to disable PowerShell on Windows 11 or 10 through Local Group Policy Editor:-
Step 1: Go to the Local Group Policy Editor on your computer.
Step 2: In the left sidebar of Local Group Policy Editor, type the following:-
User Configuration > Administrative Templates > System
Step 3: Find the
Step 4: Click on
Step 5: Under the “Options” section, click on the
Step 6: Next, type the following in separate lines and click
- powershell.exe
- powershell_ise.exe
- pwsh.exe
Step 7: Click on
Step 8: Click on
Step 9: Reboot your computer to apply the changes.
A message will pop up on your screen saying, “This app has been blocked by your system administrator,” whenever you run the disabled contents, i.e., PowerShell or PowerShellISE.
That is it.
You guys are amazing; keep reading, learning, and growing.
Also, read How to Customize or Turn Off the Desktop Selection Rectangle on Windows 11/10?