Simples
asked on
Autounattend.xml, Re-arm, KMS and Windows 7
We are currently implementing a KMS server.
I have created an image and applied an autounattend.xml file for sysprep.
I suspect that the settings I have in there are wrong.
I believe they are wrong because once the image has rebooted I am having to run slmgr /rearm, reboot, run slmgr /ato, reboot for Windows 7 to be activated.
The section I think is responsible is this :
<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microso ft-com:una ttend">
<settings pass="generalize">
<component name="Microsoft-Windows-Se curity-SPP " processorArchitecture="x86 " publicKeyToken="31bf3856ad 364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SkipRearm>1</SkipRearm>
</component>
Am I right in my assumption and how do I correct this please ?
I have created an image and applied an autounattend.xml file for sysprep.
I suspect that the settings I have in there are wrong.
I believe they are wrong because once the image has rebooted I am having to run slmgr /rearm, reboot, run slmgr /ato, reboot for Windows 7 to be activated.
The section I think is responsible is this :
<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microso
<settings pass="generalize">
<component name="Microsoft-Windows-Se
<SkipRearm>1</SkipRearm>
</component>
Am I right in my assumption and how do I correct this please ?
ASKER
Sorry but that doesn't really answer my question. That is a general how to sysprep guide.
What I need is how do I stop having to run the slmgr commands before the PC will be licenced?
I don't want to have to run those commands on many hundreds of PC's
What I need is how do I stop having to run the slmgr commands before the PC will be licenced?
I don't want to have to run those commands on many hundreds of PC's
Add the following to your unattend.xml file
Under oobeSystem, amd64_Microsoft-Windows-In ternationa l-Core_6.1 .7600.1638 5_neutral
FirstLogonCommands
CommandLine: cscript /b c:\windows\system32\slmgr. vbs /ipk XXXXX-XXXXX-XXXXX-XXXXX-XX XXX (windows 7 license key)
Order 1
RequiresUserInput: false
CommandLine: cscript /b c:\windows\system32\slmgr. vbs /ato
Order 2
RequiresUserInput: false
SynchronousCommand[Order=" 1"]
SynchronousCommand[Order=" 2"]
Under oobeSystem, amd64_Microsoft-Windows-In
FirstLogonCommands
CommandLine: cscript /b c:\windows\system32\slmgr.
Order 1
RequiresUserInput: false
CommandLine: cscript /b c:\windows\system32\slmgr.
Order 2
RequiresUserInput: false
SynchronousCommand[Order="
SynchronousCommand[Order="
ASKER
Thanks but that didn't work. It parses OK but I still have to run those slmgr commands. The section of xml is below so I'm hoping you can see what I have done wrong (we are on x86 by the way):
<settings pass="oobeSystem">
<component name="Microsoft-Windows-Sh ell-Setup" processorArchitecture="x86 " publicKeyToken="31bf3856ad 364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<AutoLogon>
<Password>
<Value>Blah blah blah=</Value>
<PlainText>false</PlainTex t>
</Password>
<Enabled>true</Enabled>
<LogonCount>1</LogonCount>
<Username>Administrator</U sername>
</AutoLogon>
<OOBE>
<HideEULAPage>true</HideEU LAPage>
<NetworkLocation>Work</Net workLocati on>
<SkipMachineOOBE>true</Ski pMachineOO BE>
<SkipUserOOBE>true</SkipUs erOOBE>
</OOBE>
<UserAccounts>
<AdministratorPassword>
<Value>Blah blah blah =</Value>
<PlainText>false</PlainTex t>
</AdministratorPassword>
</UserAccounts>
<WindowsFeatures>
<ShowMediaCenter>false</Sh owMediaCen ter>
<ShowWindowsMail>false</Sh owWindowsM ail>
</WindowsFeatures>
<FirstLogonCommands>
CommandLine: cscript /b c:\windows\system32\slmgr. vbs /ipk FJ82H-XT6CR-J8D7P-XQJJ2-GP DD4 ( Key is in the Public Domain )
Order 1
RequiresUserInput: false
CommandLine: cscript /b c:\windows\system32\slmgr. vbs /ato
Order 2
RequiresUserInput: false
SynchronousCommand[Order=" 1"]
SynchronousCommand[Order=" 2"]
</FirstLogonCommands>
Thanks
<settings pass="oobeSystem">
<component name="Microsoft-Windows-Sh
<AutoLogon>
<Password>
<Value>Blah blah blah=</Value>
<PlainText>false</PlainTex
</Password>
<Enabled>true</Enabled>
<LogonCount>1</LogonCount>
<Username>Administrator</U
</AutoLogon>
<OOBE>
<HideEULAPage>true</HideEU
<NetworkLocation>Work</Net
<SkipMachineOOBE>true</Ski
<SkipUserOOBE>true</SkipUs
</OOBE>
<UserAccounts>
<AdministratorPassword>
<Value>Blah blah blah =</Value>
<PlainText>false</PlainTex
</AdministratorPassword>
</UserAccounts>
<WindowsFeatures>
<ShowMediaCenter>false</Sh
<ShowWindowsMail>false</Sh
</WindowsFeatures>
<FirstLogonCommands>
CommandLine: cscript /b c:\windows\system32\slmgr.
Order 1
RequiresUserInput: false
CommandLine: cscript /b c:\windows\system32\slmgr.
Order 2
RequiresUserInput: false
SynchronousCommand[Order="
SynchronousCommand[Order="
</FirstLogonCommands>
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Bingo !
500 points gratefully coming your way. An excellent result, thank you very much.
500 points gratefully coming your way. An excellent result, thank you very much.
Glad to help!
See step seven here, which takes you through sysprep from start to finish.
http://theitbros.com/sysprep-a-windows-7-machine-%E2%80%93-start-to-finish/