We help IT Professionals succeed at work.

C# WMI anauthorized access exception

eugene_goldberg
on
I am trying to start a process on a remote windows 2008 server using a C# code, which uses WMI. I am presenting a valid Administrator credentials in the code, but keep getting the AnauthorizedAccessExceptionUnhandled error.
I made sure that on the target server the Administrator account is authorized to impersonate client after being authenticated. I could not find any errors on the system event log (maybe there are some other log files I need to look at)
I'm attaching my program here.
ProcessRemote.zip
Comment
Watch Question

Senior Software Engineer
Top Expert 2009
Commented:
Is the administrator a domain administrator or local administrator?
to run remote you need to be "domain administrator" that belongs to the administrator group of your server.

Author

Commented:
My target machine is a stand_alone

Author

Commented:
well, I have joined the target to my AD domain, but the results are the same - unauthorized access exception

Author

Commented:
update - this seem to work on the 32 bit machines like windows 2003, but fails on the 64 bit machenes like windows 2008.
Any ideas?

Author

Commented:
no comments