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 to AppCmd.exe would be executed in another machine?
Asked
Active
Viewed 1.2k times
10
the
- 468
- 8
- 23
andrerpena
- 345
3 Answers
6
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
Sameer Alibhai
- 163
1
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.
0
Only if you're using Shared Configuration, but I don't think that's your intent.
Otherwise it's PSEXEC, remote Powershell, or similar.
TristanK
- 9,173
- 2
- 30
- 39