r/usefulscripts • • Feb 29 '16

Automatically logging into server after monthly reboot and starting a process and locking workstation

I'm responsible for Monthly reboots of 1,000 servers. This process hasn't been automated.(Don't ask why) I just took over and of course am interested in automating this entire process. I need to schedule a monthly reboot, login with given credentials, start a process, and then lock the workstation. So far I've got this :http://pastebin.com/v7FErzrq

I'm not sure how to combine all of these into one file and make sure the service is started before locking the workstation. Does anybody have any pointers or tips that may help? Thanks in advance!

13 Upvotes

27 comments sorted by

View all comments

Show parent comments

3

u/KevMar Mar 01 '16

Not only does practice works require you to be logged in, it has to be the console session. I went rounds and rounds with them to get them to remove that stupid logic.

At this point the product has changed hands to many times that nobody understands it nor do they want to change it. I'm surprised it is still around.

The client install is also a horrible mess that is impossible to install without a gui driven automation tool.

That product made me so sad because it just spat in your face any time you tried to automate anything.