WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Functions

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

IntControl 67 and Windows NT logs user out rather than rebooting

Keywords:     IntControl(67,0,0,0,0)

Question:

I have a WinBatch script that issues an IntControl(67,0,0,0,0) to restart (i.e., perform a warm boot of a Windows NT machine.

The problem is that it only logs a user out of a session rather than rebooting the machine.

Answer:

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