O/S Deployment Thread, Sysprep and copyprofile in Technical; Playing around with sysprep and WDS in preparation of rolling out windows 7 at some point.
So far so good ...
-
17th November 2011, 09:19 AM #1 Sysprep and copyprofile
Playing around with sysprep and WDS in preparation of rolling out windows 7 at some point.
So far so good I cant capture images and install without a problem.
However when I customise windows (wallpaper, default theme etc.) these are just not being applied.
Copyprofile is in unattend.xml, administrator is the only user - but its just not working for some reason.
I'm also doing this in admin mode (ctrl,shift,f3).
Any sure fire ways of getting this to work (I've trawled the internet and the forums but there's no definitive answer that i've found)
Only thing stopping me from finalising an image!
-
-
IDG Tech News
-
17th November 2011, 01:06 PM #2
-
-
17th November 2011, 01:18 PM #3 
Originally Posted by
caffrey
Playing around with sysprep and
WDS in preparation of rolling out windows 7 at some point.
So far so good I cant capture images and install without a problem.
However when I customise windows (wallpaper, default theme etc.) these are just not being applied.
Copyprofile is in unattend.xml, administrator is the only user - but its just not working for some reason.
I'm also doing this in admin mode (ctrl,shift,f3).
Any sure fire ways of getting this to work (I've trawled the internet and the forums but there's no definitive answer that i've found)
Only thing stopping me from finalising an image!
Found some where the instructions for doing this, from memory this is basically what I done to make it work there was also reported problems with doing the copyprofile under the administrator login. Do this before putting on the domain. Also be carefull not to use the same local administrator password as the domain administrator password.
1. Create a local user that is part of the local administrator group i.e. profile
2. Log in as that user and make the required changes
3. Log back in as administrator and copy the sysprep files over etc.
4. While logged in as administrator rename the Default users profile folder to something like Default.orig
5. Log back in as the user with all the profile changes and run the Sysprep command with the copyprofile switch
That should be it from memory.
-
-
17th November 2011, 01:38 PM #4 I was going to try the "dirty" way but it could cause more issues, i'll have a(another) go with your method davit2005, if i get nowhere with that - i'll create a base image and just use GPO instead....
-
-
17th November 2011, 03:31 PM #5 The copyprofile option in the unattended XML works for me. I installed Win7 into a VM, enabled the built in local administrator account, and created a second local administrator to do all my work out of. The only time I ever step into the built in local admin account is when I need to make changes that will be included in the default user profile.
Here is my answer file.
Code:
<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<settings pass="windowsPE">
<component name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<UserData>
<AcceptEula>true</AcceptEula>
<FullName>My Organization</FullName>
<Organization>My Organization</Organization>
</UserData>
</component>
<component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SetupUILanguage>
<UILanguage>en-us</UILanguage>
</SetupUILanguage>
<InputLocale>en-us</InputLocale>
<SystemLocale>en-us</SystemLocale>
<UILanguage>en-us</UILanguage>
<UILanguageFallback>en-us</UILanguageFallback>
<UserLocale>en-us</UserLocale>
</component>
</settings>
<settings pass="specialize">
<component name="Microsoft-Windows-IE-InternetExplorer" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<DisableAccelerators>true</DisableAccelerators>
<DisableFirstRunWizard>true</DisableFirstRunWizard>
<DisableOOBAccelerators>true</DisableOOBAccelerators>
</component>
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<CopyProfile>true</CopyProfile>
<DoNotCleanTaskBar>true</DoNotCleanTaskBar>
<ProductKey>XXXXX-XXXXX-XXXXX-XXXXX-XXXXX</ProductKey>
<ComputerName>*</ComputerName>
</component>
<component name="Microsoft-Windows-UnattendedJoin" processorArchitecture="amd64" 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>
<Credentials>
<Domain>mydomain</Domain>
<Password>password</Password>
<Username>joinaccount</Username>
</Credentials>
<JoinDomain>mydomain</JoinDomain>
<MachineObjectOU>OU=ComputersWDS,DC=mydomain,DC=COM</MachineObjectOU>
</Identification>
</component>
</settings>
<settings pass="oobeSystem">
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" 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>password</Value>
<PlainText>false</PlainText>
</Password>
<Enabled>true</Enabled>
<LogonCount>1</LogonCount>
<Username>ITLocal</Username>
</AutoLogon>
<OOBE>
<HideEULAPage>true</HideEULAPage>
<HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
<NetworkLocation>Work</NetworkLocation>
<ProtectYourPC>1</ProtectYourPC>
</OOBE>
<UserAccounts>
<LocalAccounts>
<LocalAccount wcm:action="add">
<DisplayName>ITLocal</DisplayName>
<Group>Administrators</Group>
<Name>ITLocal</Name>
<Password>
<Value>password</Value>
<PlainText>false</PlainText>
</Password>
</LocalAccount>
</LocalAccounts>
</UserAccounts>
<TimeZone>Eastern Standard Time</TimeZone>
</component>
<component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<InputLocale>en-us</InputLocale>
<SystemLocale>en-us</SystemLocale>
<UILanguage>en-us</UILanguage>
<UILanguageFallback>en-us</UILanguageFallback>
<UserLocale>en-us</UserLocale>
</component>
</settings>
<cpi:offlineImage cpi:source="wim:/sources/install.wim#Windows 7 PROFESSIONAL" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend> For some nagging reason I remember reading something to the effect that the built in local admin password needed to be set the same as the secondary local admin that was created. Don't quote me on this as I set this up over a year ago. 
Sysprep is ran with the oobe, generalize, and unattend command line switches. I hope this helps.
-
-
18th November 2011, 10:25 AM #6 Thanks for that, my unattend is very similar (apart from country)
I tried your suggestion davit2005 but ran into more issues eg :-
had to do sysprep /generalize /oobe /shutdown /unattend:c:\windows\system32\sysprep\unattend.xml instead of sysprep /generalize /oobe /shutdown /unattend:unattend.xml because of permission issues.
but now when im dishing the image out i get "windows could no apply unattend settings during pass [offlineservicing]" and it fails.
Bit frustrating this whole wds thing
might just go back to the way I was doing it and just gpo everything!
I usually either clone the drives after a partial build (before joining domain) using a hardware disk to disk copier which works great, or just use windows 7 backup which worked just as good too.... why do people use wds ?! seems like it's half finished to me...
-
-
18th November 2011, 10:42 AM #7 Soz to hear still issues.
Was the profile a member of local administrators, I use 'sysprep /generalize /oobe /shutdown /unattend:c:\windows\system32\sysprep\Windows7.xml'
and have never had any issues.
I did have early problems with sysprep as a whole but these were fixed with a Microsoft hotfix whilst I was originally using Win 7 non-SP1.
-
-
18th November 2011, 01:25 PM #8 just tried again twice to pinpoint the issue.
I installed windows 7, created a profile user (definately in local admin group), ran sysprep - worked ok, but desktop customisations failed.
did another exact same fresh install (must be onto my 100th by now ;p) renamed the default user folder and i get that message during install 
So I guess that means my unattend.xml is fine (Country options and stuff are working fine)
no clue as to whats happening, feels like walking on eggshells this procedure - you would think microsoft would've got it's act together by now!
Guess i'll just create a default image and just GPO the theme change, will save some hair anyway 
cheers fer help
-
-
18th November 2011, 02:55 PM #9
- Rep Power
- 0
Have a look at the website "forensit" in their free section for a great little utility called DefProf and do away with the sledgehammer SysPrep approach.
-
Thanks to asilber from:
farmerste (6th December 2011)
-
18th November 2011, 03:14 PM #10 cheers for that, didn't really want to go to 3rd party utils (you really shouldn't have to...) but that util sounds like it'll do the job but I'm always wary that it'll cause issues later.
-
-
18th November 2011, 03:22 PM #11
- Rep Power
- 0
Well if it makes you feel any better they are from your side of the pond :-) and I can tell you that I have used it many times without issue. from what I understand they are basically replicating the specific piece of what the SysPrep does when it does the CopyProfile without anything else. Enjoy
-
-
21st November 2011, 03:50 PM #12 That tool seems to have done the trick thanks,
I did try another experiment and got to the root of the issue of "windows could no apply unattend settings during pass [offlineservicing]"
you have to run the cmd prompt as administrator (even though you are an administrator - go figure) - then it works.
I installed the theme for all users and tried again and it just didn't stick - so i've no idea what's going on! (Is it because the wallpaper i'm using is in windows/web/wallpaper/windows?)
thanks again
-
SHARE: 
Similar Threads
-
Replies: 2
Last Post: 30th September 2009, 09:32 AM
-
By FN-GM in forum Windows
Replies: 7
Last Post: 10th September 2009, 02:29 AM
-
By mcloum in forum Windows
Replies: 8
Last Post: 31st August 2009, 04:15 PM
-
By link470 in forum O/S Deployment
Replies: 5
Last Post: 25th June 2009, 01:01 AM
-
By TechSupp in forum Windows
Replies: 1
Last Post: 22nd May 2007, 10:37 PM
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules