gpt4 book ai didi

powershell - 术语 'appcmd' 未被识别为 cmdlet 的名称

转载 作者:行者123 更新时间:2023-12-03 15:08:02 25 4
gpt4 key购买 nike

我收到以下错误消息:

The term 'appcmd' 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. At line:1 char:7

最佳答案

Appcmd.exe存在于位置 %systemroot%\system32\inetsrv\ .您要么需要更新 PATH 变量以添加路径 %systemroot%\system32\inetsrv\喜欢

SET PATH=%PATH%;%systemroot%\system32\inetsrv\
或者您可以使用 Set-Location先去 Appcmd.exe的位置喜欢
Set-Location %systemroot%\system32\inetsrv\
然后运行你的命令。
或者您可以使用以下内容:
c:\windows\system32\inetsrv\appcmd.exe

关于powershell - 术语 'appcmd' 未被识别为 cmdlet 的名称,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24945542/

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