Steps to disable PowerShell in Windows 10

If you do not often use PowerShell, disable and disable PowerShell to ensure the safety of your computer.

PowerShell is a powerful command-line tool for users to install and manage Windows 10. However, this tool can also be used for malicious purposes if it falls into the hands of strangers. So, if you don't often use PowerShell, disable it to ensure the safety of your computer.

Method 1: Turn off PowerShell using Group Policy

Step 1: Press the Windows + R combination to open the Run dialog box, then enter gpedit.msc and Enter.

Steps to disable PowerShell in Windows 10 Picture 1Steps to disable PowerShell in Windows 10 Picture 1

Step 2: In the Group Policy window that appears, go to User Configuration >> Administrative Templates >> System.

Steps to disable PowerShell in Windows 10 Picture 2Steps to disable PowerShell in Windows 10 Picture 2

Step 3: Now, look in the right pane for Don't run specified Windows applications and click on it.

Steps to disable PowerShell in Windows 10 Picture 3Steps to disable PowerShell in Windows 10 Picture 3

Step 4: In the pop-up window, check the Enabled box. Then, click the small Show… button in the lower frame.

Steps to disable PowerShell in Windows 10 Picture 4Steps to disable PowerShell in Windows 10 Picture 4

Step 5: A new window appears, enter powershell.exe under the value column. You can also type powershell_ise.exe and pwsh.exe to disable ISE (server application for PowerShell). Click OK when finished.

Steps to disable PowerShell in Windows 10 Picture 5Steps to disable PowerShell in Windows 10 Picture 5

Step 6: Go back, click Apply then OK to apply the changes.

Steps to disable PowerShell in Windows 10 Picture 6Steps to disable PowerShell in Windows 10 Picture 6

Now you will no longer be able to open PowerShell. If at any time you want to re-enable PowerShell, just go back to the Don't run specified Windows applications window and select Disabled.

Method 2: Turn off PowerShell in Windows 10 with Local Security Policy Editor

Local Security Policy Editor in Windows 10 allows users to manage security protocols.

Step 1: Press Windows + R to open the Run dialog box, then type secpol.msc and Enter.

Steps to disable PowerShell in Windows 10 Picture 7Steps to disable PowerShell in Windows 10 Picture 7

Step 2: In the Local Security Policy window, right-click Software Restriction Policy and select New Software Restriction Policies.

Steps to disable PowerShell in Windows 10 Picture 8Steps to disable PowerShell in Windows 10 Picture 8

Step 3: Right-click Additional Rules >> Select New Hash Rule…

Steps to disable PowerShell in Windows 10 Picture 9Steps to disable PowerShell in Windows 10 Picture 9

Step 4: Click Browse.

Steps to disable PowerShell in Windows 10 Picture 10Steps to disable PowerShell in Windows 10 Picture 10

Step 5: In the Browse… window, enter the following path in the address bar.

%SystemRoot%system32WindowsPowerShellv1.0

Steps to disable PowerShell in Windows 10 Picture 11Steps to disable PowerShell in Windows 10 Picture 11

Step 6: Select powershell.exe in the list and click Open.

Steps to disable PowerShell in Windows 10 Picture 12Steps to disable PowerShell in Windows 10 Picture 12

Step 7: When back to the New Hash Rule window, click Apply to apply.

Steps to disable PowerShell in Windows 10 Picture 13Steps to disable PowerShell in Windows 10 Picture 13

Now, restart your computer for the changes to take effect.

If you ever want to re-enable Windows PowerShell, just reopen the Local Security Policy Editor and click Additional Rules. Now, right click on the commands you created and select Delete.

Steps to disable PowerShell in Windows 10 Picture 14Steps to disable PowerShell in Windows 10 Picture 14

Windows PowerShell is a powerful tool that not everyone should use. If you do not have much knowledge about this tool, turn it off by the two ways above.

4 ★ | 2 Vote