Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
#DefineFunction EnumNameSpaces(strComputer,strNameSpace,list) list = StrCat(list, strNameSpace, @TAB) path = StrCat("winmgmts:\\", strComputer,"\", strNameSpace) objWMIService = GetObject(path) colNameSpaces = objWMIService.InstancesOf("__NAMESPACE") ForEach objNameSpace In colNameSpaces list=StrCat( EnumNameSpaces (strComputer, StrCat(strNameSpace, "\", objNameSpace.Name), list)) Next Return(list) #EndFunction strComputer = "." list=EnumNameSpaces(strComputer,"root","") Message('WMI Namespace Tree', StrReplace(list,@TAB,@CRLF))
Article ID: W17321
File Created: 2007:07:03:14:29:28
Last Updated: 2007:07:03:14:29:28