![]() Loading |
VBScript |
JavaScript |
Powershell |
Search Options: List All WMI Namespaces
|
||
' Description: Lists all WMI namespace on a computer.
strComputer = "." Call EnumNameSpaces("root") Sub EnumNameSpaces(strNameSpace) WScript.Echo strNameSpace Set objWMIService=GetObject _ ("winmgmts:{impersonationLevel=impersonate}\\" & _ strComputer & "\" & strNameSpace) Set colNameSpaces = objWMIService.InstancesOf("__NAMESPACE") For Each objNameSpace In colNameSpaces Call EnumNameSpaces(strNameSpace & "\" & objNameSpace.Name) Next End Sub | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |