June 28, 2012

How to enum IIS Website name and ID

 

$computername="Endor"
$WebService = [adsi]"IIS://$computername/W3SVC"
$WebService.psbase.children | where {$_.Keytype -eq "IISWebServer"} | select name,ServerComment

No comments:

Post a Comment