Hi Folks,

We're currently looking to wrtie a bit of script that can do several fairly
simple things that when concatenated make a very useful routine.

When re-imaging our machines after sysprepping we want to perform a reverse
DNS lookup to find the IP address (we use a static DHCP database based on a
Cisco VMPS database) - we then want to rename the machine to the discovered
name.

Once renamed, we'd like to query our domain for this account name and, if
found, delete it. If the account isn't already there or we've just removed
it, we'd like to add this machine account effectively rejoining the
computer to the domain.

I realise there are several key parts to this script but I wa hoping you
fine guys/gals might be able to point me in the right direction.

Thanks,
D