gpt4 book ai didi

powershell - 术语 '-Execution Policy' 无法识别

转载 作者:行者123 更新时间:2023-12-02 16:24:48 25 4
gpt4 key购买 nike

我想在powershell中运行这样的语句:

-ExecutionPolicy Bypass -File install-sshd.ps1

但我收到此错误消息:

-ExecutionPolicy : The term '-ExecutionPolicy' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

我应该怎么做才能解决这个问题?非常感谢

最佳答案

您需要将“PowerShell”放在前面:

PowerShell -ExecutionPolicy Bypass -File install-sshd.ps1

-ExecutionPolicy 是 PowerShell .exe 的参数。

关于powershell - 术语 '-Execution Policy' 无法识别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48148664/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com