Shut down a Windows 7 PC when no users are logged in
Hi all,
I am looking for a way to shut down Windows 7 PC's that have no users logged in via KACE. This would be applied at set times during the day.
I have looked at scripting for this but am not having much luck due to my inexperience with VB.
Any help with providing a solution would be much appreicated.
Answers (2)
Go to Scripting > Scripts, there's a script there called "Shutdown a Windows system with snooze". Duplicate this and remove the snooze if you want to force a shutdown.
If you go into Scripting > Scripts, there's a script there called "Shutdown a Windows system with snooze". You could duplicate this (button at the bottom) and remove the snooze (Alerts section) if you want to force a shutdown. Haven't tested this but it's already there and should be easy enough to test. If that doesn't work, there's other ways as well (issuing "shutdown -s" via a batch file being just one).
John
Microsoft technet has a post that is close to this. http://social.technet.microsoft.com/Forums/nl/w7itprogeneral/thread/f4c9d83a-4c31-4f9a-be8f-c0eb962135ec