Hi,
I'm looking for a vbs script or a batch file that will rename a computer (with user input for 2 fields) in both the description and the actual computer name. The format will always be the same:
NAME(Input1)-(Input2)
Once the computer is renamed, then need it joined to a domain. Joining should require little to no input from the user (the script can hold the credentials).
Ideally, the script would rename, restart, join, restart. If it's only possible to rename/restart and then run a second script for joining/restarting, that's fine too but it would be preferential if this did everything automatically. If at all possible, maybe a message box after each step would be great as well (renaming finishes, message box says "computer renamed to 'comp name'") and the same for the domain.
Also, if the script could delete itself when all is done, that would be even better!
I've been searching for the past few days and have been unsuccessful in finding a script that I can modify with my needs and get the results I'm looking for.
Any help would be greatly appreciated.
Thanks!