Loading |
VBScript |
JavaScript |
Powershell |
Search Options: List the IIS Computer NameContent of List the IIS Computer Name.vbsMD5 Hash: CA4F524694EC8B7A8680FF47A37C76B2 |
||
' Description: Lists the name of the computer where IIS is running.
strComputer = "." Set objWMIService = GetObject _ ("winmgmts:{authenticationLevel=pktPrivacy}\\" _ & strComputer & "\root\microsoftiisv2") Set colItems = objWMIService.ExecQuery("Select * from IIsComputer") For Each objItem in colItems Wscript.Echo "Name: " & objItem.Name Next | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |