DayLaborer
Programmer
This question was originally posted as thread779-1381193 in the XP Pro forum and someone there suggested I post it in this forum instead.
This question pertains to my Windows XP Pro PC that has "Fast User Switching" enabled.
I would like to schedule a task to execute a small script that would reboot my PC only if:
- there are no users with programs running at the time (even if they're suspended)
and
- no one is "active" (i.e. actively logged-in)
In other words, if there are users who are logged in ("Disconnected" - i.e. not "active") but do not have any programs running, I want to reboot. But if any users are either actively logged-in or are "Disconnected" but have programs running, I don't want anything to happen.
What would the contents of such a script file be?
Thanks so much,
Eliezer
This question pertains to my Windows XP Pro PC that has "Fast User Switching" enabled.
I would like to schedule a task to execute a small script that would reboot my PC only if:
- there are no users with programs running at the time (even if they're suspended)
and
- no one is "active" (i.e. actively logged-in)
In other words, if there are users who are logged in ("Disconnected" - i.e. not "active") but do not have any programs running, I want to reboot. But if any users are either actively logged-in or are "Disconnected" but have programs running, I don't want anything to happen.
What would the contents of such a script file be?
Thanks so much,
Eliezer