Internet Information Server (IIS) Slideshow

  1. $server="ServerIIS" 
  2. $objWMI = [WmiSearcher] "Select * From IIsApplicationPoolSetting" 
  3. $objWMI.Scope.Path = "\\$server\root\microsoftiisv2" 
  4. $objWMI.Scope.Options.Authentication = [System.Management.AuthenticationLevel]::PacketPrivacy 
  5. $pools = $objWMI.Get() 
  6. $pools | foreach  {  
  7.     $_.name 
  8.     $_.CPUResetInterval 
 
Loading...
Concentrated Tech NSoftware Dell Compellent Sponsored by Idera and Concentrated Tech and NSoftware and Dell Compellent
Copyright 2011 PowerShell.com. All rights reserved.