lundi 12 octobre 2015

AWS EC2 - Run a Script on Instance Launch With Windows Server 2012

I would like to run a script to clear out a folder (ie: C:/myfolder) on Windows Server 2012. I thought about adding an item to the Startup Scripts list under Edit Group Policy, but this would clear out my folder any time any of my servers rebooted. I only want the folder cleared out on a new instance launch from an existing AMI.

What's the best way to achieve this?




Aucun commentaire:

Enregistrer un commentaire