Home  >  Article  >  Computer Tutorials  >  What to do if scripts are prohibited from running in win11 system

What to do if scripts are prohibited from running in win11 system

王林
王林forward
2024-01-31 15:36:091033browse

php editor Youzi teaches you how to easily solve the problem of scripts being prohibited from running in Win11 system! In just a few simple steps, you can remove script running restrictions and enjoy the convenience brought by scripts. Say goodbye to tedious operations and enjoy the automation and efficiency improvements brought by scripts!

1. Shortcut key "win x" and select the "Windows PowerShell (Administrator)" option from the options given above the taskbar.

What to do if scripts are prohibited from running in win11 system

2. After entering the window, enter the "set-ExecutionPolicy RemoteSigned" command, press Enter to execute, then enter "Y" and press Enter.

What to do if scripts are prohibited from running in win11 system

3. Under normal circumstances, the problem can be solved after entering this command, but some friends have reported errors after executing the command.

What to do if scripts are prohibited from running in win11 system

4. Then enter the "Set-ExecutionPolicy -Scope CurrentUser" command, enter "RemoteSigned" after execution, and finally enter "Y" and press Enter to execute.

What to do if scripts are prohibited from running in win11 system

The above is the detailed content of What to do if scripts are prohibited from running in win11 system. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:dafanshu.com. If there is any infringement, please contact admin@php.cn delete