I was thinking of a quick way of using dsquery and dsrm in winpe.
First we query domain and out to log.
dsquery computer dc=test,dc=com -name %computername% > t:\dsrm.log
for /f %i in (t:\dsrm.log) do dsrm -s 192.168.1.1 -d test.com -subtree -noprompt %i -u U$er -p Pa$$wo$d
Best of Luck!
http://www.microsoft.com/en-us/download/details.aspx?id=16770
I perfer to run it as a task with the microsoft tools. - mikesharp1 11 years ago
echo %computername% or hostname - mikesharp1 11 years ago