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.
2. After entering the window, enter the "set-ExecutionPolicy RemoteSigned" command, press Enter to execute, then enter "Y" and press Enter.
3. Under normal circumstances, the problem can be solved after entering this command, but some friends have reported errors after executing the command.
4. Then enter the "Set-ExecutionPolicy -Scope CurrentUser" command, enter "RemoteSigned" after execution, and finally enter "Y" and press Enter to execute.
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!