PowerShell Script
Identify IIS is running on Remote server.
$vm = "localhost" $iis = get-wmiobject Win32_Service -ComputerName $vm -Filter "name='IISADMIN'" if($iis.State -eq "Running") { Write-Host "IIS is running on $vm" } else { Write-Host "IIS is not running on $vm" }
Thanks for details explanation.
ReplyDeleteThis blog is really awesome Thanks for sharing most valuable information with us.
and also we are providing E-Learning Portal Videos for students and working Professionals
Hurry Up! Bag All Courses in Rs - 10000 /- + taxes
41 Career building courses.
Designed by 33 industrial experts
600+ hours of video Content
DevOps and Cloud E-Learning Portal
Thanks for sharing Very Use ful Blog..
ReplyDeleteAzure DevOps Online Training
Microsoft Azure DevOps Training Courses
Microsoft Azure DevOps online Training in Hyderabad
Microsoft Azure DevOps Training
Azure DevOps Online Training in Hyderabad