I have a Powershell script that sets up new web servers. At the moment, you have to connect to the server via Remote Desktop and run the script locally; it uses the WebAdministration
module and is full of pseudopaths like IIS:/Sites\www.mysite.com\ and so on.
Can I use the same WebAdministration
module to manage a remote server? I'd hoped something like get-childitem IIS://myserver/Sites/
might work but can't find any documentation or examples of using this module against a remote server.