Factory Reset of ESXi

From VI-Toolkit
Jump to: navigation, search

factoryResetESXi.pl

author: William Lam

Description

Based on Mike's PowerCLI: Factory reset of ESXi, William wrote a perl version of the script so you can reset your host to the factory defaults by running it.

Usage

[vi-admin@scofield ~]$ ./factoryResetESXi.pl --server reflex.primp-industries.com --username primp --vihost kang.primp-industries.com
Enter password:
"kang.primp-industries.com" is entering maintenance mode ...
        "kang.primp-industries.com" has successfully entered maintenance mode!
Removing "kang.primp-industries.com" from vCenter ...
        "kang.primp-industries.com" has successfully been remove from vCenter!
Resetting factory settings on "kang.primp-industries.com"!

Location

http://communities.vmware.com/docs/DOC-10651