10

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?

3 Answers 3

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
2
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.

1
  • I'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.
    – Pxtl
    Jan 28, 2020 at 17:35
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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .