Home All Groups Group Topic Archive Search About

Security Excetion while Rebooting a remote computer using WMI

Author
12 Oct 2006 4:33 PM
-pb-
Hi,

I am trying to rebbot a remote computer using WMI in c# but it failes
and riases an exception called "Security Exception". What seeting i
need for code level security which gives me an access to use the
System.Managent namespace.

Author
12 Oct 2006 4:19 PM
Dominick Baier
i remember vaguely that you have to explicitly enable the shutdown privilege
for such an operation - look at the "connection string" syntax for WMI.

---
Dominick Baier, DevelopMentor
http://www.leastprivilege.com

Show quoteHide quote
> Hi,
>
> I am trying to rebbot a remote computer using WMI in c# but it failes
> and riases an exception called "Security Exception". What seeting i
> need for code level security which gives me an access to use the
> System.Managent namespace.
>