Demonstration script that lists all the instances of the IIsNNTPRebuild class.
strComputer = "." Set objWMIService = GetObject _ ("winmgmts:{authenticationLevel=pktPrivacy}\\" _ & strComputer & "\root\microsoftiisv2") Set colItems = objWMIService.ExecQuery("Select * from IIsNntpRebuild") For Each objItem in colItems Wscript.Echo "Name: " & objItem.Name Next
strComputer = "." Set objWMIService = GetObject _ ("winmgmts:{authenticationLevel=pktPrivacy}\\" _ & strComputer & "\root\microsoftiisv2") Set colItems = objWMIService.ExecQuery("Select * from IIsNntpRebuild") For Each objItem in colItems Wscript.Echo "Name: " & objItem.Name Next