FB_init

Friday, August 20, 2010

PowerShell listing web sites

And here is a PowerShell script to list web sites.

 Import-Module WebAdministration

while($true) {
    Write-Host '--- - - - '
   Get-Item IIS:\Sites\* | Select-Object -property Name,State
    Write-Host ' ******** '
    Start-Sleep -s 20  
  }
 





No comments: