Table of Contents
Windows 10 accompanies a pre-installed PowerShell tool. This is a vital tool that makes it simple to play out a few assignments just by typing some straightforward orders. It allows you to run orders to roll out different improvements in the Settings, investigate a few issues, oversee includes, and automate your works, and so forth
Windows PowerShell is a fundamental and helpful application included in the Windows operating framework. Be that as it may, now and again, you may have to disable it to abstain from making undesirable changes by running pernicious orders. This tool is used by a dangerous actor to make malignant programming that runs pernicious contents and gets to the file framework and library. All in all, you can say that this tool is additionally used by certain programmers to run malignant orders.
In such a case, if you need to disable the PowerShell application then this article will assist you with doing so. This article explains how to disable the PowerShell application using Security strategy and Local Group Policy Editor. Allow us to see them in detail.
How to disable PowerShell in Windows 10
Before you continue, it is prescribed to make a System Restore point. Now follow the beneath proposals to disable Windows PowerShell on Windows 10:
1] Disable PowerShell on Windows 10 using Security Policy
Nearby Security Policy offers users an approach to hinder PowerShell access on Windows 10. Adhere to the instructions offered beneath to do as such:
- Click Start, type Local Security Policy and select the outcome from the menu list.
- Go to one side sheet and extend Software Restriction Policies.
- Right-click on the Additional Rules and select the New Hash Rule choice.
- If you don’t find the best approach to grow the Software Restriction Policies then right-click on the Software Restriction Policies and select the New Software Restriction Policies alternative.
In the New Has Rule window, tap on the Browse alternative. Now open the file adventurer using Windows+E keys and type the following way area in the location bar and press Enter:
This will find the 32-bit variant of PowerShell. Select the powershell.exe from the rundown and afterward click Open > Apply > OK.
If you need to disable PowerShellISE on your Windows 10 PC, then select powershell_ise.exe (instead of powershell.exe) from the rundown.
In the Local Security Policy window, right-click on the Additional Rules under the Software Restriction Policies area and click on the New Hash Rule button and afterward select the Browse button.
Again open the File Explorer and copy-glue the way given underneath in the location bar. Then press the Enter key to choose the 64-bit form of PowerShell.
On the following page, look down and select the powershell.exe alternative and afterward click on the Open button.
Note: You need to choose the powershell_ise.exe alternative if you need to disable PowerShellISE.
Then click Apply and afterward select the OK button.
In the wake of completing the above steps, restart your PC to save the changes. This will disable Powershell access on your PC.
2] Disable PowerShell on Windows 10 using Group Policy
Neighborhood Group Policy Editor is a useful asset accessible in Windows 10 Pro or Enterprise that facilitates a few undertakings on PC. Those users with the Pro or Enterprise adaptation of Windows 10 can use the Group strategy tool to obstruct PowerShell. Follow the underneath steps to disable PowerShell using Group Policy:
Above all else, press the Windows+R console alternate route to open the Run exchange box.
Type gpedit.msc and hit Enter. In the Local Group Policy Editor window, explore to the way beneath:
User Configuration > Administrative Templates > System
Go to the correct sheet and double tap on the Don’t run specified Windows applications policy.
On the following page, click on the Enabled button as shown in the above picture. Then go to the Options areas and click on the Show button.
Now you need to open another cell in the Value section, type powershell.exe, and click the OK button. This will disable the PowerShell access.
You can likewise disable the PowerShell ISE interface. To do as such, open another cell, type powershell_ise.exe, and click the OK button.
However, if you need to disable the PowerShell 7, type pwsh.exe in the new cell and afterward click the OK button.
In last, click Apply > OK to save the changes.
When you complete the above cycle, you won’t get to Powershell any longer.
Disable PowerShell 7 on Windows 10
If you have PowerShell 7 on your device, you can disable it by uninstalling it from your Windows 10 PC. Here are the steps you need to follow:
- Right-click on the Start button
- Select Setting from the user menu.
- In the Settings app, click on the Apps category
- Then select the Apps and features alternative from the left sheet.
- Now go to the right side, look down and select the PowerShell app.
- Click on the Uninstall button.
- If Windows requests that you affirm, click the Uninstall button again.
Adhere to the on-screen instructions to uninstall this app. It will eliminate the app and its connected information. This way you can disable the user’s admittance to PowerShell rendition 7.