Hi Mark,
"Mark A. Richman" <nospam.TakeThisOut@nospam.com> schrieb im Newsbeitrag news:%232%23IsCfOFHA.3292@TK2MSFTNGP12.phx.gbl...
> ManagementObjectSearcher searcher = new ManagementObjectSearcher(scope, new
> ObjectQuery ("SELECT * FROM IIsDirectory where Name LIKE 'W3SVC/1/ROOT/%'"),
> null);
as i used the following WQL-Command with WMITools (CIM Studio) i also get
the instance in the enumeration where the property "AppRoot" is "<empty>" (NULL):
SELECT * FROM IIsDirectory where Name LIKE 'W3SVC/%/ROOT%'
> That works just fine, unless one of the AppRoots contains a null parent key.
> You can easily create a null parent key using inetmgr. Say you have this
> structure: /foo/bar/baz where /foo and /foo/bar have no corresponding
> metbase keys. Create an AppRoot at /foo/bar/baz using inetmgr. The metabase
> now shows /LM/W3SVC/1/Root/foo/bar/baz as an AppRoot, but also creates null
> keys for /foo and /foo/bar in the process. WMI ignores /foo/bar/baz in the
> above query.
> Is this a WMI bug, or can I work around this?
It exists no BUGs, that are all features.
Bye
Peter<!-- ~MESSAGE_AFTER~ -->