Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: IntControl(67,0,0,0,0)
The problem is that it only logs a user out of a session rather than rebooting the machine.
Users permissions are probably involved. The currently logged on user must have the proper permissions, in order to reboot the machine.
On the machine where the script is being executed, try to manually reboot the machine. You will probably recieve the following message: "You do not have permission to shut down or restart this computer"
You might try using the function wntRunAsUser, and specifying a user that has the appropriate permisssions, before attempting the IntControl 67.
Article ID: W13089
Filename: IntControl 67 and Windows NT logs user out rather than rebooting.txt
File Created: 1999:04:15:16:51:40
Last Updated: 1999:04:15:16:51:40