Impersonating accounts

From: Mat (anon_at_discussions.microsoft.com)
Date: 04/28/05


Date: Thu, 28 Apr 2005 10:55:29 +1000

Hi,

I am logged into Windows as User A and running a service under Local System
account. This service is trying to find a certificate that is in the user
store (not the local machine store). To search for the certificate, I assume
I have to impersonate the user (User A) programmatically. The impersonation
functions are returning successfully and I am able to find the certificate.

However, the problem is that although the impersonation functions are
working, they do not load the registry hive for User A. So if I am logged in
to Windows as User B (or even logged out), the certificate searching fails.

How can I programmatically load the registry hive for a specific user?

Thanks,
Mat.



Relevant Pages

  • RE: updates after format
    ... if the Microsoft Server is down. ... software you are installing has not passed Windows Logo testing verify its ... When you try to download an ActiveX control, install an update to Windows ... and you do not have the appropriate certificate in your Trusted Publishers ...
    (microsoft.public.windows.mediacenter)
  • Re: Need help configuring Wireless Connection profile
    ... and I can only use the intel OR windows utility, not both at the same time. ... Windows authentication for all users,4129,LRG\ryanv,4149,Wireless WPA2 ... SMALL BUSINESS SERVER: ... STEP #1 Install Certificate Services ...
    (microsoft.public.windowsxp.general)
  • Re: Windows Update repeats
    ... You cannot install some updates or programs ... to a Windows component, install a service pack for Windows or for a Windows ... The Microsoft digital signature affirms that software has been tested with ... Publishers certificate store. ...
    (microsoft.public.windowsupdate)
  • Re: sfc /scannow wont run
    ... or upgrade installs but I definitely know retail versions do. ... If you have Windows XP Pro installed then do not purchase a Windows XP Home ... This behavior can occur if the certificate for VeriSign time stamping ...
    (microsoft.public.windowsxp.help_and_support)
  • RE: Double authentication (User & Machine) with VPN SSL
    ... If you've got Windows and IIS, ... server machine using the typical IPSec policy and normal IPSec certs. ... Double authentication with VPN SSL ... - our users will soon have a certificate in a USB token; ...
    (Security-Basics)