未将术语"appcmd"识别为cmdlet的名称 [英] The term 'appcmd' is not recognized as the name of a cmdlet

查看:246
本文介绍了未将术语"appcmd"识别为cmdlet的名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到以下错误消息:

"appcmd"一词不能识别为cmdlet,函数,脚本文件或可运行程序的名称.检查名称的拼写,或者是否包含路径,请验证路径是否正确,然后重试. 在第1行:char:7

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\.您要么需要udpate PATH变量以添加路径%systemroot%\system32\inetsrv\ like

Appcmd.exe exists at the location %systemroot%\system32\inetsrv\. You either need to udpate your PATH variable to add the path %systemroot%\system32\inetsrv\ like

SET PATH=%PATH%;%systemroot%\system32\inetsrv\

,或者您可以使用Set-Location首先转到Appcmd.exe的位置,例如

or you can use Set-Location to first go to the location of Appcmd.exe like

Set-Location %systemroot%\system32\inetsrv\

然后运行您的命令.

这篇关于未将术语"appcmd"识别为cmdlet的名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆