PowerShell Script to start IIS via local machine

Hi Guyz,

i need help. i want a powershell script to start iis of my virtual machine through my local machine.

If anybody know how to do then please reply.


What version of windows is your local machine and VMs? Are you using Hyper-V


A simple way to start IIS remotely is to use:

Invoke-Command -ComputerName NameOfComputer -Scriptblock { iisreset /start }