xenon2050 Posted July 10, 2007 Posted July 10, 2007 Is it possible to have the computer name be randomized? We do a lot of deploying and it would be sweet if the Computer Name could be changed with each installation without having to be at the computer... Is this possible?
mikesw Posted July 10, 2007 Posted July 10, 2007 Well the Computer name is stored in the registry. So after windows is installed, just runa program you wrote that does random number generation and append to the companyprefix name and then use the command at the comand line to write your computer nameback into the registry of that computer. Another way is to have your program create names in advance and store it to a file.Then you would stick your floppy/flash into the computer, it would read a pointer thatis stored along with the already generated names which is used to determinewhich random compute name is available next in the file and write it to the registry, then update thepointer and you would go to the next computer and it would be ready to update using thenew pointer value.Another way is to write a program to read the MAC address of the network card in thecomputer and append it to the end of the company computer name. You could alsoresolve the MAC address agains't a DNS and append a english name associated with theMAC/network address and since the MAC addresses are unique, your computer nameswill always be unique. You don't want to use IP numbers, since if your network is DHCP'd,then your computer may have an IP address that's different than the one appended to your compute name causing alot of confusion on tracing down the computerwith a name vs. the actual IP address of the computer causing the problem.
Martin H Posted July 10, 2007 Posted July 10, 2007 Enter : '*' as Computer Name and it will be randomly generated.
xenon2050 Posted July 10, 2007 Author Posted July 10, 2007 Thank you for your responses. I will try that.
stimpee Posted July 12, 2007 Posted July 12, 2007 (edited) Is there a way to put in a word + random string as computer name?i.e. MACH-XXXXMACH* Edited July 12, 2007 by stimpee
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now