Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: wntRunAsUser intcontrol 67 Reboot a user shutdown privileges
"Act as part of the operating system" "Increase quotas" "Replace a process level token"
The code would look something like....
AddExtender("WWWNT34I.DLL") curuser=wntGetUser(@DEFAULT) Message("Current user:",curuser) ;run as new user with shutdown privledges user="Administrator" pswd="jumpinjackflash" ; Note do not use variable substitution (ie. "%pswd%") ; because on error it would display admin password..... ret = wntRunAsUser( "", user, pswd, 2, 1) newuser=wntGetUser(@DEFAULT) Message("Running as new user:",newuser) intcontrol(67,0,0,0,0) exit
Article ID: W14461
Filename: Reboot user with no shutdown privileges.txt
File Created: 2001:03:01:14:39:34
Last Updated: 2001:03:01:14:39:34