It is anoying as hell when you push out an update or a patch and a computer is off.  This hopefully will limit this problem. Although it is impossible to keep a user from shutting down this will at least keep the computer from doing it on its own.  This can be pushed in a batch file, or deployed as part of a login script for rollouts, and of course through kasyea.  Note this will only work on windows xp sp2 or higher.
Batch or login script:
Kaseya
Script Description: Turns the computers power configuation to the ‘always on’ setting
IF TrueÂ
THEN
  Execute Shell Command
   Parameter 1 : powercfg /setactive “always on”
   Parameter 2 : 1
     OS Type : 0
ELSE
Â
#1 by Adrian on September 11, 2009 - 5:20 pm
Do you know if this will work if the users do not have administrative rights? I have kaseya and tried to do something similar with a batch file but it wouldn’t make the changes as desired.
#2 by admin on September 20, 2009 - 3:57 pm
This should work for a user, remember that power options are configured on a per user basis. If there are more that one users on a computer that you will likely have to run this script for each login. I suggest scripting it to run every few hours for a few days so you make sure you get all the user account on the computer.
#3 by jeff on January 26, 2010 - 11:45 pm
Sorry to sound harsh english is bad. Love your website!