PowerShell Script to start IIS via local machine

This topic contains 2 replies, has 3 voices, and was last updated by  TommyQuality 3 weeks, 4 days ago.

  • Author
    Posts
  • #82925

    Gaurav Kumar
    Participant

    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.

    Thanxx

  • #82930

    Richard Siddaway
    Moderator

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

  • #82948

    TommyQuality
    Participant

    Hi,

    A simple way to start IIS remotely is to use:

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

You must be logged in to reply to this topic.