Basically what I need is a script that will somehow look at the MAC address (possible through ipconfig /all or sysinfo or something) of the Local Area Network connection (on-board NIC) and change the computer to something like:
C:> ipconfig /all
IP ........................... 192.168.0.2
Subnet mask............ 255.255.255.0
Default Gateway....... 192.168.0.1
MAC........................ 00-1E-4F-F5-89-66
Add 'US' to the MAC -> US00-1E-4F-F5-89-66 -> Remove the dashes -> US001E4FF58966
Sorry, for dragging out all of that, I just didn't want any misunderstandings about what I was trying to achieve, I'm not great at scripting at all -- I'm trying to learn (I'm just an intermediate Batch file scripter).
I don't mind if the script is in BATCH, VBScript, PERL, Python ... but I think it would probably be something easily done through VBScript. Like I said, I'm willing to learn as much as possible so if you could run me through what ever you have I would appreciate it.
I'm looking at making either a Automated Windows Deployment and need a way of running a script to change the name -- and then add the computer to the domain. since all of this economy crisis it would be hard to get my work to purchase hundreds of licenses of a Ghost/Symantec product to manage this.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.
Basically what I need is a script that will somehow look at the MAC address (possible through ipconfig /all or sysinfo or something) of the Local Area Network connection (on-board NIC) and change the computer to something like:
C:> ipconfig /all
IP ........................... 192.168.0.2
Subnet mask............ 255.255.255.0
Default Gateway....... 192.168.0.1
MAC........................ 00-1E-4F-F5-89-66
Add 'US' to the MAC -> US00-1E-4F-F5-89-66 -> Remove the dashes -> US001E4FF58966
Sorry, for dragging out all of that, I just didn't want any misunderstandings about what I was trying to achieve, I'm not great at scripting at all -- I'm trying to learn (I'm just an intermediate Batch file scripter).
I don't mind if the script is in BATCH, VBScript, PERL, Python ... but I think it would probably be something easily done through VBScript. Like I said, I'm willing to learn as much as possible so if you could run me through what ever you have I would appreciate it.
I'm looking at making either a Automated Windows Deployment and need a way of running a script to change the name -- and then add the computer to the domain. since all of this economy crisis it would be hard to get my work to purchase hundreds of licenses of a Ghost/Symantec product to manage this.
Thanks!
Share this post
Link to post
Share on other sites