Link to home
Start Free TrialLog in
Avatar of jbyrd1981
jbyrd1981Flag for United States of America

asked on

Run a script after updates

I was looking for a way to run a batch file ONLY when a computer is restarting from WSUS updates. Is this possible? If so, how?
Avatar of Don
Don
Flag of United States of America image

What is it that you want this batch to do?
Avatar of jbyrd1981

ASKER

I already have the batch file. The file basically tells the disk encryption software to be bypassed so the Windows login comes back up. In otherwords no preboot logon prompt.
That wont be possible, startup scripts load with windows. The encryption password prompt comes before windows.
Pete, I need this to only run if the computer is reboot for automatic updates only.

dstewartjr, I know it would not be a startup script... Maybe a logoff script that is only run if a restart is a result of automatic updates.


Again, this cannot be done...The encryption password prompt comes before windows.
dstewartjr:

Could Task Scheduler be used to monitor an update event and run the batch file before hand?
Authors comment "....The file basically tells the disk encryption software to be bypassed so the Windows login comes back up. In otherwords no preboot logon prompt. "


for the third time


The encryption password prompt comes before windows.


What the author is trying to accomplish cannot be done
@jbyrd1981

Are you using TrueCrypt ?



http://www.truecrypt.org/faq

Note: TrueCrypt will not prompt you for a password if you have enabled caching of the pre-boot authentication password (Settings > 'System Encryption') and the volumes use the same password as the system partition/drive.
No not TrueCrypt. I thought that there might be a place in WSUS to insert a script file to run after updates are applied. Did not find anything.

The biggest problem are computers sitting at the login screen. When updates hit the machine it reboots automatically. Now the machine is inaccessable until someone logs in past the encryption software's preboot screen. I have a script that will bypass this screen for one boot. I cannot add it to logoff scripts because it would kind of defeat the encryptions purpose plus no one is typically logged in anyway. That is why I need it to only run if updates have been applied.

Can a schedueled task detect a WSUS reboot and run the script? It also does not sound like that would be easily implemented across many computers.
ASKER CERTIFIED SOLUTION
Avatar of Jim-R
Jim-R
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Interestng Jim! I would pobably want it to execute for event ID 22 restart required. However, the script reboots the machine so that means people will probably be restarted by force. Probably will have to wait until we upgrade to Win 7. Anyone else with any ideas for XP?
Thanks!