Win11 prohibits the method of lifting the script

When win11 uses Windows PowerShell to execute scripts, it prompts that running scripts is prohibited on this system

 

Solution (follow the steps):

  1. Start by running PowerShell as an administrator.
  2.  Enter set-ExecutionPolicy RemoteSigned on the command line and press Enter, then enter Y and press Enter.
  3. So far the problem is solved.
  4. If the following red error occurs.
  5. On the command line, enter Set-ExecutionPolicy -Scope CurrentUser and press Enter, then enter RemoteSigned, and then enter Y and press Enter.

 

 

Je suppose que tu aimes

Origine blog.csdn.net/weixin_44341110/article/details/131451941
conseillé
Classement