+ Post New Thread
Results 1 to 12 of 12
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 ...
  1. #1

    Join Date
    May 2010
    Posts
    1,017
    Thank Post
    105
    Thanked 76 Times in 62 Posts
    Rep Power
    47

    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!

  2. #2

    Join Date
    Jul 2008
    Location
    Merseyside
    Posts
    295
    Thank Post
    16
    Thanked 10 Times in 10 Posts
    Rep Power
    14
    To be honest I couldn't get the copyprofile setting to work properly....

    Here is a dirty way....

    Windows 7: Copy A Modified User Profile Over The Default Profile

    it does work, just be careful

  3. #3

    Join Date
    May 2011
    Location
    Jus North of London, close but not too close
    Posts
    747
    Thank Post
    172
    Thanked 56 Times in 54 Posts
    Rep Power
    35
    Quote Originally Posted by caffrey View Post
    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.

  4. #4

    Join Date
    May 2010
    Posts
    1,017
    Thank Post
    105
    Thanked 76 Times in 62 Posts
    Rep Power
    47
    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....

  5. #5
    Duke5A's Avatar
    Join Date
    Jul 2010
    Posts
    795
    Thank Post
    81
    Thanked 130 Times in 113 Posts
    Blog Entries
    8
    Rep Power
    31
    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.

  6. #6

    Join Date
    May 2010
    Posts
    1,017
    Thank Post
    105
    Thanked 76 Times in 62 Posts
    Rep Power
    47
    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...

  7. #7

    Join Date
    May 2011
    Location
    Jus North of London, close but not too close
    Posts
    747
    Thank Post
    172
    Thanked 56 Times in 54 Posts
    Rep Power
    35
    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.

  8. #8

    Join Date
    May 2010
    Posts
    1,017
    Thank Post
    105
    Thanked 76 Times in 62 Posts
    Rep Power
    47
    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

  9. #9

    Join Date
    Nov 2011
    Location
    New York
    Posts
    2
    Thank Post
    0
    Thanked 1 Time in 1 Post
    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.

  10. Thanks to asilber from:

    farmerste (6th December 2011)

  11. #10

    Join Date
    May 2010
    Posts
    1,017
    Thank Post
    105
    Thanked 76 Times in 62 Posts
    Rep Power
    47
    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.

  12. #11

    Join Date
    Nov 2011
    Location
    New York
    Posts
    2
    Thank Post
    0
    Thanked 1 Time in 1 Post
    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

  13. #12

    Join Date
    May 2010
    Posts
    1,017
    Thank Post
    105
    Thanked 76 Times in 62 Posts
    Rep Power
    47
    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:
+ Post New Thread

Similar Threads

  1. Sysprep and VLK error
    By MK-2 in forum Windows
    Replies: 2
    Last Post: 30th September 2009, 09:32 AM
  2. Sysprep and wireless settings
    By FN-GM in forum Windows
    Replies: 7
    Last Post: 10th September 2009, 02:29 AM
  3. sysprep and DHCP
    By mcloum in forum Windows
    Replies: 8
    Last Post: 31st August 2009, 04:15 PM
  4. How do I sysprep and image Adobe Creative Suite 3?
    By link470 in forum O/S Deployment
    Replies: 5
    Last Post: 25th June 2009, 01:01 AM
  5. Sysprep and then Image
    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
  •