Ok Ill post some of the things I just learned playing with WIN7.(Skipped vista) for anyone that may look at this thread
If your using winpe be careful its not making the windows directory D: That was one of my biggest issues took me a day to figure that out. So I thought it was putting my tokened xml on the drive but it wasnt it was going to a c drive holding the system reserverd partition files etc for bootmgr. I didnt do an audit on mine I just did sysprep /generalize /oobe but make sure you have the driver path defined in your sysprep.xml before running it.
Quote:
@ECHO OFF
REM
REM ------------------------------------------
REM VARIABLES
REM ------------------------------------------
SET MODEL=%#!computer@prod_name%
SET IMAGES=F:\Vista\Images\Business
SET DRVBASE=F:\Vista\Drivers
SET SYSPREPP=Sysprep
SET PRODPATH=drivers
SET RDEPLOY=f:\rdeploy\windows\rdeploy.exe
REM ------------------------------------------
REM Token Replacement task for generating the computer name correctly
REM Replacetokens .\Vista\Unattend\Sysprep\Business\sysprep.xml .\vista\temp\%ID%.xml
echo "%MODEL% found"
%RDEPLOY% -md -f%IMAGES%\WIN7RCULTIMATE_sysprep.img -noprompt -rescan
copy "%DRVBASE%\%MODEL%" D:\%PRODPATH%
copy "%DRVBASE%\Misc" D:\%PRODPATH%\Misc
copy "F:\Vista\Temp\%ID%.xml" "D:\Windows\panther\unattend.xml"
DEL f:\Vista\Temp\%ID%.xml
|
heres the script I was playing around with yes its says vista but thats just cause I was trying to use the advanced_vista_hwii_samples i downloaded for the KB
Here are the specialize settings I used
Quote:
<settings pass="specialize">
<component name="Microsoft-Windows-Deployment" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<RunSynchronous>
<RunSynchronousCommand wcm:action="add">
<Path>net user administrator /active:yes </Path>
<Order>1</Order>
</RunSynchronousCommand>
</RunSynchronous>
</component>
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Display>
<HorizontalResolution>1024</HorizontalResolution>
<VerticalResolution>768</VerticalResolution>
<ColorDepth>32</ColorDepth>
</Display>
<ComputerName>%COMPNAME%</ComputerName>
<CopyProfile>true</CopyProfile>
<ProductKey>ProductKeyHere</ProductKey>
<TimeZone>Eastern Standard Time</TimeZone>
<RegisteredOrganization>Company</RegisteredOrganization>
<RegisteredOwner>Company</RegisteredOwner>
<AutoLogon>
<Password>
<Value>PasswordHash</Value>
<PlainText>false</PlainText>
</Password>
<Domain>%COMPNAME%</Domain>
<Enabled>true</Enabled>
<LogonCount>1</LogonCount>
<Username>administrator</Username>
</AutoLogon>
<Themes>
<DefaultThemesOff>true</DefaultThemesOff>
</Themes>
</component>
<component name="Microsoft-Windows-UnattendedJoin" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Identification>
<JoinDomain>Yours</JoinDomain>
<Credentials>
<Domain>Yours</Domain>
<Password>Password</Password>
<Username>Youradmin</Username>
</Credentials>
</Identification>
</component>
<component name="Microsoft-Windows-SystemRestore-Main" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<DisableSR>1</DisableSR>
</component>
</settings>
|
Second sysprep is very picky on vista/win7 make sure your not defining to much. Mine failed on some machine models because I told it to use 60hz for the display. Removed it and it was fine. Supposedly there is also a known issue with the media center showing options if you search for it.