以管理员身份运行 PowerShell:
-
右键点击“开始”按钮,选择“Windows PowerShell(管理员)”。
-
在弹出的 PowerShell 窗口中,执行以下命令:
-
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
以管理员身份运行 PowerShell:
右键点击“开始”按钮,选择“Windows PowerShell(管理员)”。
在弹出的 PowerShell 窗口中,执行以下命令:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser