Advertisement
maximillianx

Get WSUS IIS Site Info

May 21st, 2015
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Invoke-command -ComputerName <YOURWSUSSERVER> {
  2.     Import-Module WebAdministration
  3.     get-website | Where-Object { $_.name -eq "WSUS Administration" } | select name ,id , state, physicalpath ,
  4.     @{n = "Bindings"; e = { ($_.bindings | select -expa collection ) -join ‘;’ }} ,
  5.     @{n = "LogFile";e = { $_.logfile | select -expa directory }} ,
  6.     @{n = "attributes"; e = {($_.attributes | % { $_.name + "=" + $_.value }) -join ‘;’ }}
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement