IT Management Suite

  • 1.  Automatically Generate Computer Name

    Posted Aug 21, 2009 11:50 AM
    Does anyone know of a way that I can automatically generate a PCs computer name? I know i can leave Computername=* in the sysprep, but that gives me an odd PC name like 6DDFB8... I want something more like 'Client-001',002,003, etc. I see in the Initial Deployment job down on the bottom left I have 2 jobs, a Windows XP, and SVR job in the Configurations Menu and they have listed in the ComputerName field 'XP1000....XP1009', but it's grey'd out, so I can't change it...AND when i go to create a new configuration, that field is still grey'd out and I can't put anything else in there... This is actually what I'd like to happen, if i could name the computer whatever i want with numbers at the end. It seems to work, but the name has to be a little better than say XP1276.  I'd like to utilize this functionality, but I'm not able to click in that field...Has anyone done this before??

    Any help would be awesome!
    Thanks everyone
    Jeff


  • 2.  RE: Automatically Generate Computer Name
    Best Answer

    Posted Aug 21, 2009 12:22 PM
    On the Modify Configuration task, go to the "Microsoft Networking" tab in the left scrollbar.  Uncheck "Use Token" and click "Define Range".


  • 3.  RE: Automatically Generate Computer Name

    Posted Aug 23, 2009 12:59 AM
    you can do it in an intial deploy and set in the aclient settings the install-as-new option. So that every time it boots into automation and if the computer is in the new computers group it will treat it as a new computer or use the modify config job.


  • 4.  RE: Automatically Generate Computer Name

    Posted Aug 24, 2009 04:11 PM

    How about a script like this?  set the computername to the dns hostname
    for /f "tokens=2 delims=:" %%i in ('ipconfig ^| find "IP Address"') do set ip=%%i
    for /f "tokens=2 delims=:. " %%i in ('nslookup %ip% ^| find "Name:"') do set name=%%i
    reg add HKLM\SYSTEM\CurrentControlSet\Control\ComputerName\Computername /v Computername /d %name% /f
    
    rem you might need this one
    rem reg add HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters /v "NV Hostname" /d %name% /f
    


  • 5.  RE: Automatically Generate Computer Name

    Posted Aug 24, 2009 04:58 PM
    thanks bgreen!  That's exactly what i was looking for!  I can't believe i didn't see that before.


  • 6.  RE: Automatically Generate Computer Name

    Posted Sep 01, 2009 11:46 AM
    But it seems only support 10 PCs. If we have PC more than 10, what can we do?