468,484 Members | 2,076 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,484 developers. It's quick & easy.

WMI Impersonation Problem

Hi,
i want to get number of printers attached to my computer, i use Win32_printer class to get the printers, but before connecting WMI i impersonating to some other user. But the WMI gives the output not for the impersonated user but the one who has launched it.
I am launching the process in system accout and trying to impersonate to the logged in user to get the printer information of the logged in user. (Initially i have to launch the process in system account) Does anybody has any idea how to do this??
Apr 21 '08 #1
0 910

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

3 posts views Thread by Jake Smythe | last post: by
11 posts views Thread by Phil | last post: by
reply views Thread by velvet.graham | last post: by
4 posts views Thread by David Cablalero | last post: by
8 posts views Thread by Marco Mechelli | last post: by
reply views Thread by Brian | last post: by
2 posts views Thread by gieforce | last post: by
reply views Thread by theflame83 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.