Is there a way to make my local AppCmd.exe to refer to a remote server?
10,808
Solution 1
You can download PSEXEC and run the following command:
psexec \\servername c:\windows\system32\inetsrv\appcmd
For example
psexec \\servername c:\windows\system32\inetsrv\appcmd list wp
Solution 2
I don't think you can directly use appcmd
for remote management. But IIS 7 has a PowerShell provider for remote management, check this article.
Related videos on Youtube
![andrerpena](https://i.stack.imgur.com/TWxLF.png?s=256&g=1)
Author by
andrerpena
Updated on September 18, 2022Comments
-
andrerpena over 1 year
I need to remotely administrate IIS via command-line. Is there a way to make my local
AppCmd.exe
refer to a remote server? So that every command I pass toAppCmd.exe
would be executed in another machine? -
Jordan over 8 yearsBe aware that doing this could set off major alarms in your organization if you are in a company that watches for stuff like this.
-
it3xl over 6 yearsPlease don't forget about PsExec gets stuck on licence prompt when running non-interactively and use the
PsExec /accepteula
switch for your invocations. -
Pxtl over 4 yearsI've been banging my head against the walls for weeks on this thing, so a heads-up: the IIS Powershell providers for remote management are awful if you use UNC shares for anything.