Does anyone know how to run a process as the SYSTEM user account?
I am doing some registry modifications that are being blocked when the code
is run as Administrator.
Ed
----
Ed,
Use the AT command to schedule CMD.EXE to run interactively. This will
run under the System account. Once it is up run
Regedit.exe from this CMD window and it will also run under the System
account. You can use the Processes tab on Task
Manager to confirm this.
Bill Peele
Microsoft Enterprise Support
That would be fine ... only that I am calling a DLL from InstallShield that
modified registry keys for some hardware device install/uninstalls. There
is no explicit uninstall INF or hardware drivers that I can find in the
various Microsoft MSDN SDK's and API's ... I find that if I manually remove
the driver keys that are created by the hardware device installation then
the device no longer appears in the hardware enum. However, these registry
keys, although owned by Administrator, have access rights for SYSTEM
(obviously to prevent accidental deletion).
Since we would like to be able to uninstall our device and we need to be
able to do this from within running C++ code what I am digging for is a
programmatic way to do this rather than a command-line way to do this.
Ed