sysprep and computername
#1
Posted 12 August 2005 - 12:26 PM
I have tiried using compname.exe , but that was not successful.
[Userdata]
Computername = c:\sysprep\compname /d ?s
Can onyone offer a suggestion as to how this could be accomplished using sysprep?
Any help you provide would be greatly appreciated.
Thanks,
Jim
#2
Posted 12 August 2005 - 12:42 PM
#3
Posted 12 August 2005 - 01:14 PM
;SetupMgrTag [Unattended] InstallFilesPath=C:\sysprep\i386 [UserData] FullName="" OrgName="" ComputerName=Your Computer Name
Why don't you just use winnt.sif to do it? It should not affect SysPrep
This post has been edited by Gee: 12 August 2005 - 01:15 PM
#4
Posted 12 August 2005 - 01:21 PM
Thanks for any input.
#5
Posted 12 August 2005 - 02:31 PM
compname.exe /d ?s > c:\serial.txt
Then use a batch file to modify the registry
@ECHO OFF set Serial=temp %Serial% < c:\serial.txt cls ECHO Building Registry File ... ECHO Windows Registry Editor Version 5.00 > \serial.reg ECHO. ECHO [HKLM\SYSTEM\CurrentControlSet\Control\ComputerName\ComputerName\] >> \serial.reg ECHO "ComputerName" = "%Serial%" >> \serial.reg regedit /s \serial.reg :END exit
Something to that extent. You get the idea.
#6
Posted 12 August 2005 - 02:39 PM
Thanks for any help you provide in resolving this issue.
#7
Posted 12 August 2005 - 02:49 PM
Viper999, on Aug 12 2005, 02:26 PM, said:
I don't think you can parse information into SysPrep.inf
The problem with your above command is that it is trying to execute a program from SysPrep.inf and it can not do that.
You would need the data and then find a way to enter it into SysPrep.inf before SysPrep executes.
copy/b Serial.txt + SysPrep.inf SysPrep.inf
may do it, but unlikely as Serial.txt would have to be formatted properly.
Sorry, I am out of ideas
#8
Posted 12 August 2005 - 05:09 PM
Do a: sysprep -factory, shutdown and clone the partition/disk.
Deploy that image to a machine and boot it (=factory mode) and allows you to run scripts that modify sections in a sysprep.inf or selects a file from a list of sysprep.inf-templates and renames it to C:\sysprep\sysprep.inf'
(all these files can come from a network share, if you did integrate the network drivers!)
The scripts that alter or choose the correct sysprep can be run automatically if you put them into winbom.ini or normal startup or runonce-reg entry and even manually!)
After that, click sysprep reseal button (sysprep dialog starts automatically in factory mode) OR put resealmode=reseal section in winbom.ini to run it silently without user intervention)
Then the deploy pc will reboot and use YOUR pre-filled/auto-selected sysprep.inf in it's mini-setup.
IMO sysprep's factory mode is it's most powerful feature... it can install stuff like hotfixes, updated apps and ever changing scripts, including sysprep.inf...etc...
from a network-enabled state. Besides that, it also does pnpdriver-installing silently.
So it's all done BEFORE reseal but AFTER image-deployment.
You can even use it to detect and put in the correct HAL update. Ever heard of a "Universal Image" :-)
This way Sysprep-imaging (with a couple of scripts and cmdline tools) AND the BTS-driverpacks are an extremely versatile and fast deploy mechanism.
Now, if you add Vista's great ximage, drvload and the wimfltr-driver to that... it's a deployers heaven. It's the way almost anyone will deploy Windows systems in a couple of years. Garanteed. There are people that are already using it today to deploy XP. :-)
#9
Posted 12 August 2005 - 08:44 PM
Thanks for any help
#11
Posted 13 August 2005 - 07:16 AM
Also how would I origionally run sysprep? Would I origionally run sysprep with sysprep1.inf which would contain all data except the userdata section which would house the userdata section of sysprep.inf ?
Thanks in advance for you help. I appreciate it.
Jim
#12
Posted 15 July 2006 - 09:16 AM
Works great. I even set up a login script to collect MAC addresses and computer names to populate a file that can be used with "WSName". If anyone wants to see specifics I think I still have the files so I can show you.



Help

Back to top








