PowerCLI: Factory reset of ESXi
RTFM: Factory reset of ESXi
author: Mike Laverick
Description
Mike wrote a little script so you can reset your host to the factory defaults by running the script. This is very convenient for test hosts so you can focus on the problem at hand.
Usage
Adjust the host details in the script on his page.