The term 'appcmd' is not recognized as the name of a cmdlet The term 'appcmd' is not recognized as the name of a cmdlet powershell powershell

The term 'appcmd' is not recognized as the name of a cmdlet


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

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

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

Set-Location %systemroot%\system32\inetsrv\

and then run you command.

OR you can use the following:

c:\windows\system32\inetsrv\appcmd.exe


I think the user has the same problem I did: %systemroot%\system32\inetsrv\ was empty on my machine.

You need to "Turn Windows features on and off", and then select "IIS Management Scripts and Tools" under "Internet Information Services"->"Web Management Tools".


Open command prompt as administrator, and try....

cd c:\windows\system32\inetsrv

then type

appcmd 

see my example belowenter image description here

vote up if it works for you : D