- Follow via:
- RSS
- Email Alert
Question
0
Votes
How can I schedule XP to only reboot if at the login screen?
I have a specialized workstation that needs to be rebooted during off hours. The computer runs Windows XP SP3, and I know how to schedule a reboot for a specific time. My problem is that it is in a healthcare facility and although the hours are 8-5 we may get an emergency that requires the use of this computer after hours. I don't want it to reboot itself if staff is logged into it doing an x-ray. Is there a way to only have it reboot if it is at the login screen? Thanks!
26th Mar 2012
Answers (2)
2
Votes
Script
I'd imagine the cleanest way to do this would be with a script. I'd strongly suggest using powershell, and then you can run the script via scheduled task if you need to.
Do you have much experience with Powershell? If not, I can write a script for you if you like. If so, I'd get psloggedon.exe from the sysinternals suite on that workstation. The script will check the output of the psloggedon command and then reboot only if no one is logged on. Simple enough
Do you have much experience with Powershell? If not, I can write a script for you if you like. If so, I'd get psloggedon.exe from the sysinternals suite on that workstation. The script will check the output of the psloggedon command and then reboot only if no one is logged on. Simple enough
26th Mar 2012
Replies
I'm not an expert with Powershell but I think I can figure it out. Great idea! Thanks for the prompt response.
sfrechette@...
27th Mar 2012
0
Votes
This article may be of assistance:
27th Mar 2012

































