clivebuckwheat Posted June 11, 2010 Author Share Posted June 11, 2010 Look up this code:where do I add this in? <OOBE> <HideEULAPage>true</HideEULAPage> <NetworkLocation>Other</NetworkLocation> <ProtectYourPC>2</ProtectYourPC> </OOBE> Link to comment Share on other sites More sharing options...
myselfidem Posted June 12, 2010 Share Posted June 12, 2010 (edited) Hello Set inside pass oobeSystem:<settings pass="oobeSystem"> <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"> <OOBE> <HideEULAPage>true</HideEULAPage> <NetworkLocation>Other</NetworkLocation> <ProtectYourPC>2</ProtectYourPC> </OOBE>You can find more info here:*Edit: Example for Windows 7 Ultimate x86 Edited June 12, 2010 by myselfidem Link to comment Share on other sites More sharing options...
clivebuckwheat Posted June 12, 2010 Author Share Posted June 12, 2010 I get an error when I try to open the xml file in Windows image manager from the waik kit. What is wrong?10:52 AM : Error opening C:\Documents and Settings\Administrator\Desktop\Windows 7 Wim file\sysprep32.xml.10:52 AM : 10:52 AM : System.ArgumentException: The specified setting cannot be applied to this configuration pass.Parameter name: value at Microsoft.ComponentStudio.ComponentPlatformInterface.AnswerFileSettingOverride.set_AppliedConfigurationPass(ConfigurationPass value) at Microsoft.ComponentStudio.ComponentPlatformInterface.AnswerFileComponentSetting.MergeSettings(Node componentNode, Collection`1 nodesToRemove, MergeXmlEventArgs mergeArg, Boolean failOnError) at Microsoft.ComponentStudio.ComponentPlatformInterface.AnswerFile.ReadSettingsFromUnattendNode(Node unattendRoot) at Microsoft.ComponentStudio.ComponentPlatformInterface.AnswerFile.DoLoad(Boolean useImagePathInAnswerFile) at Microsoft.ComponentStudio.ComponentPlatformInterface.AnswerFile..ctor(String path) at Microsoft.ComponentStudio.ComponentPlatformInterface.Cpi.OpenAnswerFile(String path) at Microsoft.ComponentStudio.MainForm.OnFileOpenUnattend(Command command)10:52 AM : 10:52 AM : Error opening C:\Documents and Settings\Administrator\Desktop\Windows 7 Wim file\sysprep32.xml.10:52 AM : 10:52 AM : System.ArgumentException: The specified setting cannot be applied to this configuration pass.Parameter name: value at Microsoft.ComponentStudio.ComponentPlatformInterface.AnswerFileSettingOverride.set_AppliedConfigurationPass(ConfigurationPass value) at Microsoft.ComponentStudio.ComponentPlatformInterface.AnswerFileComponentSetting.MergeSettings(Node componentNode, Collection`1 nodesToRemove, MergeXmlEventArgs mergeArg, Boolean failOnError) at Microsoft.ComponentStudio.ComponentPlatformInterface.AnswerFile.ReadSettingsFromUnattendNode(Node unattendRoot) at Microsoft.ComponentStudio.ComponentPlatformInterface.AnswerFile.DoLoad(Boolean useImagePathInAnswerFile) at Microsoft.ComponentStudio.ComponentPlatformInterface.AnswerFile..ctor(String path) at Microsoft.ComponentStudio.ComponentPlatformInterface.Cpi.OpenAnswerFile(String path) at Microsoft.ComponentStudio.MainForm.OnFileOpenUnattend(Command command)Hello Set inside pass oobeSystem:<settings pass="oobeSystem"> <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"> <OOBE> <HideEULAPage>true</HideEULAPage> <NetworkLocation>Other</NetworkLocation> <ProtectYourPC>2</ProtectYourPC> </OOBE>You can find more info here: Link to comment Share on other sites More sharing options...
myselfidem Posted June 12, 2010 Share Posted June 12, 2010 (edited) HelloWhen you use Windows System Image Manager (WSIM) for check your unattended file choose before your version Windows catalog!My example were for Windows 7 Ultimate x86.Yours is Windows 7 Professional.Try to set your unattended xml "at his place" ( source Windows folder) and don't set on the desktop! And choose the appropiate catalog file. Edited June 12, 2010 by myselfidem Link to comment Share on other sites More sharing options...
clivebuckwheat Posted June 12, 2010 Author Share Posted June 12, 2010 ok that fixed it but now I get Windows cannot parse error and the machine goes into a continual reboot. See screen shots.Of the errorWindows Image managerand my attached sysprepfixed.xml file.I am using Windows 7 PRO 32 BITsysprep32fixed.xml Link to comment Share on other sites More sharing options...
myselfidem Posted June 12, 2010 Share Posted June 12, 2010 (edited) Hello I see it's better to use: <InputLocale>0409:00000409</InputLocale>Because it seems that this value sometimes fails:<InputLocale>en-us</InputLocale>For your folder name where you install all the files for Windows 7 Pro, try to give a little name, like "WinPro" (don't use space)at the root of your HDD.It seems that there is an error inside the last line for the catalog file inside sysprep.xml: It must be like this:install.wim#Windows 7 Professional Edited June 12, 2010 by myselfidem Link to comment Share on other sites More sharing options...
clivebuckwheat Posted June 12, 2010 Author Share Posted June 12, 2010 should I put 0409:00000409 for all instances of en-us?. Do I change these below also? <SystemLocale>en-us</SystemLocale> <UILanguage>en-us</UILanguage> <UserLocale>en-us</UserLocale>I put the wim file in C:\Winpro7I still getting the parsing error with the rebooting loopThe last line of the xml file is<cpi:offlineImage cpi:source="catalog:c:/winpro7/install_windows 7 professional.clg" xmlns:cpi="urn:schemas-microsoft-com:cpi" />sysprep32fixed.xml Link to comment Share on other sites More sharing options...
myselfidem Posted June 12, 2010 Share Posted June 12, 2010 (edited) No, it's OK! Just for InputLocale.And if you want to launch the vbs file change:</RunSynchronousCommand>- <RunSynchronousCommand wcm:action="add"> <Path>WScript.exe c:\windows\ClaraLaptop.vbs</Path> <Order>4</Order> You can see inside this example the last line (example):http://www.brianleejackson.com/download/7_sysprep/7_enterprise_x86_sysprep.xml"OfflineImage" is the source of your Windows Image ProfessionalHave you check this line with WISM? Edited June 12, 2010 by myselfidem Link to comment Share on other sites More sharing options...
myselfidem Posted June 12, 2010 Share Posted June 12, 2010 (edited) With WSIM you can load source install.wim, and you have this line: </settings> <cpi:offlineImage cpi:source="wim:c:/winpro7/sources/install.wim#Windows 7 PROFESSIONAL" xmlns:cpi="urn:schemas-microsoft-com:cpi" /></unattend>Don't forget to save your new sysprep.xmlI've made with your informations: source folder: "C:\winpro7"I hope that will help you! Edited June 12, 2010 by myselfidem Link to comment Share on other sites More sharing options...
clivebuckwheat Posted June 13, 2010 Author Share Posted June 13, 2010 Worked great.1. now the next hurdle is the auto activation is not working.2. Also I am creating a admin user in the sysprep process, how can I make it part of the administrator group right now it is only a standard user.sysprep32.xml Link to comment Share on other sites More sharing options...
myselfidem Posted June 13, 2010 Share Posted June 13, 2010 Nice Local account inside group Administrators like this:<LocalAccounts> <LocalAccount wcm:action="add"> <Password> <Value>aABjAG0AaABwACEAUABhAHMAcwB3AG8AcgBkAA==</Value> <PlainText>false</PlainText> </Password> <Group>Administrators</Group> <DisplayName>Admin</DisplayName> <Name>Admin</Name> </LocalAccount></LocalAccounts>Preserving activation, some help here:http://www.mydigitallife.info/2009/09/24/how-to-backup-and-restore-windows-7-and-server-2008-r2-activation-status-activate-offline-on-reinstall/ Link to comment Share on other sites More sharing options...
clivebuckwheat Posted June 13, 2010 Author Share Posted June 13, 2010 I been using this tutorial with your helphttp://blog.brianleejackson.com/sysprep-a-windows-7-machine-%E2%80%93-start-to-finish-v2he doesn't mention backing up token's and suchit's seem the first login commands are not runningsysprep32.xml Link to comment Share on other sites More sharing options...
clivebuckwheat Posted June 13, 2010 Author Share Posted June 13, 2010 (edited) I been using this tutorial with your helphttp://blog.brianleejackson.com/sysprep-a-windows-7-machine-%E2%80%93-start-to-finish-v2he doesn't mention backing up token's and suchAlso I ran the two commands manually logged in as adminminstrator and windows activatedcscript //b c:\windows\system32\slmgr.vbs /ipk PRODUCT KEYcscript //b c:\windows\system32\slmgr.vbs /atoIt's seem the first login commands are not running from the sysprep. Edited June 13, 2010 by clivebuckwheat Link to comment Share on other sites More sharing options...
myselfidem Posted June 13, 2010 Share Posted June 13, 2010 You can add this lines :<AutoLogon> <Enabled>true</Enabled> <LogonCount>5</LogonCount> <Username>Administrator</Username> <Password> <Value>xxxxxx</Value> <PlainText>false</PlainText> </Password> </AutoLogon><UserAccounts> <LocalAccounts> <LocalAccount wcm:action="add"> <Password> <PlainText>false</PlainText> <Value>xxxxxx</Value> </Password> <Group>Administrators</Group> <DisplayName>myselfidem</DisplayName> <Name>myselfidem</Name> </LocalAccount> </LocalAccounts> </UserAccounts>I hope that will help you! Link to comment Share on other sites More sharing options...
clivebuckwheat Posted June 13, 2010 Author Share Posted June 13, 2010 I have it all working, even activation except the program install on first login.There seems to be an error in the vb script which I cannot locatehere is my post in the scripting section of the forum. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now