The scripts are in my github repo. However, I encourage you to read the full post before using them.
I recently got a request from a customer of mine to deploy ESXi server through WDS (Windows Deployment Services).
Before you read any further, you should already be familiar with WDS, PXE-Booting, TFTP, DHCP and similar terms surrounding the WDS deployment mechanism. If you use WDS already, you probably know this already. If not, I suggest you cover your basics and learn how to setup WDS for regular windows deployment before implementing the ESXi deployment
So I needed to setup recovery options for a windows service
Basically I wanted all 3 recovery options to set to restart
SC to the rescue!