Discussion:
WMI Query Permissions?
(too old to reply)
Bradley Plett
2007-10-01 23:43:21 UTC
Permalink
I'm fairly new to WMI. I am searching "root\MicrosoftIISv2" with the
following query: "select * from IIsApplicationPoolSetting". This
works like a charm from an administrator account, but I am trying to
run this with an account that does not have full privilege. Can I
adjust the WMI permissions required to run this (and, if so, how)?
Alternatively, if I need to adjust the user's privilege level, what do
I need to add?

What I find a little odd is that users without privilege can run this
without getting an exception - they just get an empty set returned. Of
course, that doesn't really matter to me - I just want to get it
working. :-)

Thanks!
Brad.
Nicolas Noakes
2007-10-18 10:18:15 UTC
Permalink
Can I adjust the WMI permissions required to run this (and, if so,
how)?

See here: http://www.eggheadcafe.com/articles/20010614a.asp

Set WMI permissions with :
Control Panel:
Administrative Tools/
Computer Management /
Services and Applications /
WMI Control /
(right click) Properties
[Security tab]
Root
Security

set the permissions required

Nicolas

*** Sent via Developersdex http://www.developersdex.com ***

Continue reading on narkive:
Loading...