From 74ca0056aa30730f9939c8d430e0a0b281bfbe1b Mon Sep 17 00:00:00 2001 From: shengwei <414685209@qq.com> Date: Sat, 15 Jun 2024 18:03:04 +0800 Subject: [PATCH] doc(powershell): add powershell prompts that scripts is disabled on this system --- docs/guides/quick-start.md | 8 ++++++++ docs/zh-hans/guides/quick-start.md | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/docs/guides/quick-start.md b/docs/guides/quick-start.md index 08306105..df226931 100644 --- a/docs/guides/quick-start.md +++ b/docs/guides/quick-start.md @@ -122,6 +122,14 @@ Add the following line to the end of your profile and save: Invoke-Expression "$(vfox activate pwsh)" ``` +If Powershell prompts:`cannot be loaded because the execution of scripts is disabled on this system`.**Open PowerShell** with **Run as Administrator**.Then, run this command in PowerShell + +```shell +Set-ExecutionPolicy -ExecutionPolicy RemoteSigned +# After that type Y and press Enter. +y +``` + ::: ::: details Clink & Cmder diff --git a/docs/zh-hans/guides/quick-start.md b/docs/zh-hans/guides/quick-start.md index e0dd8032..97069cc8 100644 --- a/docs/zh-hans/guides/quick-start.md +++ b/docs/zh-hans/guides/quick-start.md @@ -123,6 +123,14 @@ Invoke-Item $PROFILE # 打开profile Invoke-Expression "$(vfox activate pwsh)" ``` +如果powershell提示:`在此系统上禁止运行脚本`,那么请你**以管理员身份重新运行powershell**输入如下命令 + +```shell +Set-ExecutionPolicy -ExecutionPolicy RemoteSigned +# 之后输入Y,按回车 +y +``` + ::: ::: details Clink & Cmder