I have program where i start USMT (load or scanstate) with a domain user that gives administrative privileges on the local computer. This is working perfectly fine in Windows 7.
The program needs to start as a non administrator user, but executing load/scanstate with administrator privileges.
However it fails when running load/scanstate properly becouse its not elevated currectly. But how can i overcome this, without having administrative rights?
Best Regards Thomas Nissen
ProcessStartInfo restoreProcessInfo = new ProcessStartInfo
{
Verb = "runas",
UseShellExecute = false,
Domain = strAdminDomain,
UserName = strAdminUsername,
Password = strAdminPassword,
FileName = loadstate.exe",
Arguments = "blablabla"
}