I have about 200 clients that occasionally get re-imaged. They do not belong to domains. They all have static IP addresses. Using the static IP addresses how could I write a script that would rename each computer? It doesn't matter what it names them... It would be nice if it named each one the same name every time I ran the script though I suppose. Is [HKEY_LOCAL_MACHINE\System\CurrentControlSet\control\ComputerName\] the only registry key I need to change in order to change a computer's name? If so, how could I write a batch script that would do something like this:
Go <MACHINE IP ADDRESS> and run regedit /s \\SERVER\PUBLICSHARE\CHANGECOMPUTERNAME<COMPUTER'S IP ADDRESS>.REG
For that example I would need a reg file for every computer though. I'm sure there is some way to do it with a variable instead.... Help?