In this step-by-step guide, we will show you how you can easily disable the PowerShell in Windows 10 using the Local Group Policy Editor.
Step 1: Open the Local Group Policy Editor on your computer. For this, open the Start menu and search for “gpedit.msc.” Now, from the search results, click on the Local Group Policy Editor.
Step 2: Now, in the window that opens, go to the following location:
User Configuration > Administrative Templates > System
Step 3: On the right side section, double-click on the policy named “Don’t run specified Windows application.” In the window prompt that opens, select the “Enabled” option.
Step 4: In the same window, under the “Options” section, click the “Show” button.
Step 5: Now, in the “Value” section, type “powershell.exe” and then click “Ok.”
Once you have completed all the steps mentioned above, the PowerShell application will be disabled on your computer. To re-enable using the app and to reverse the changes, follow the same procedure but in Step 3, just select “Not Configure” and the PowerShell will once again be able to run.