I have a script I have been playing with that uses netdom, but I would like to have a script that can remove the computer from one domain and rename the PC in the process of joining it to a new domain. For the new computername I wanted it to rename it with the username of the person logged in, if the user is logged in to three machines I want it to be able to name the PC like so "User01", "User02" and "User03". any help would be appreciated.
The script I am playing with though have not tested can be supplied if needed.
The script I am playing with though have not tested can be supplied if needed.