Link to home
Start Free TrialLog in
Avatar of eugene_goldberg
eugene_goldberg

asked on

C# WMI anauthorized access exception

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
ASKER CERTIFIED SOLUTION
Avatar of Miguel Oz
Miguel Oz
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of eugene_goldberg
eugene_goldberg

ASKER

My target machine is a stand_alone
well, I have joined the target to my AD domain, but the results are the same - unauthorized access exception
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?
no comments