PowerShell Script to start IIS via local machine

Welcome Forums General PowerShell Q&A PowerShell Script to start IIS via local machine

This topic contains 2 replies, has 3 voices, and was last updated by

 
Participant
1 year ago.

  • Author
    Posts
  • #82925

    Participant
    Points: 0
    Rank: Member

    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

    Participant
    Points: 0
    Rank: Member

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

  • #82948

    Participant
    Points: 0
    Rank: Member

    Hi,

    A simple way to start IIS remotely is to use:

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

The topic ‘PowerShell Script to start IIS via local machine’ is closed to new replies.