How to Turn off Windows PowerShell Script Execution
As a handy and essential tool offered by Windows operating systems, PowerShell is widely used. There are mostly two types of scripts, which are signed by local scripts and a trusted publisher. You can create Local scripts on your personal computer, The other kind of scripts is signed by a trusted publisher to perform some specific tasks. If you want to turn off Windows Powershell script execution, you can use these steps:
Step 1: Press Win + R to open the Run box.
Step 2: Type in Regedit and then press Enter.
Step 3: Navigate to
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows
Step 4: Right-click on the Windows folder.
Step 5: Select New > key.
Step 6: Name the folder as PowerShell.
Step 7: Right-click on PowerShell and then select New > DWORD (32-bit) Value.
Step 8: Name it as EnableScripts.
Step 9: Double-click it and set the value as 0.
Step 10: Right-click on PowerShell > New > String value.
Step 11: Name it as ExecutivePolicy.
Step 12: Double click on it and set the value as the following content shows
- AllSigned: Allow only signed scripts
- RemoteSigned: Allow local scripts and remote signed scripts
- Unrestricted: Allow all scripts
Comments
Post a Comment