How can I manage IIS remotely from another server using C #?
ServerManager.OpenRemote("ServerName");
I need an example of ServerName format in above snippet code
I tried this example with "localhost" parameter but did not return any value
You need to ensure that you have enough administration privilege to access the remote IIS, such as Firewall is disabled on both the server. The logon user is domain\administrator.
This link also provide some configuration to enable the DCOM:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.