Jump to content


  • 0
skinnyzaz

how to copy default profile during sccm sysprep

Question

I need to copy my local admin profile to the default profile so all new users get the settings. I know how to do it using sysprep and the copy command in the answer file. But how can I work this into sccm so it will sysprep with my answer file then capture the image for me?

Share this post


Link to post
Share on other sites

Recommended Posts

  • 0

Just do the following during the Build And Capture TS:

  1. Run A Commandline: reg.exe LOAD HKU\Default %windir%\..\Users\Default\NTuser.dat
  2. Run A Commandline: reg.exe ADD HKU\Default\Somekey /v SomeValueName /t REG_DWORD /d SomeValue /f
  3. Run A Commandline: reg.exe UNLOAD HKU\Default

This has worked for me, basicly every user setting is stored somewhere in the registry, you just need to find them. Googling helps.

Share this post


Link to post
Share on other sites

  • 0

What I did which works perfectly, was install windows 7, but before it logs in to windows do the ctlr+shift+f3 on the welcome screen to reboot in to audit mode. Then install all your applications and prep the profile for user context configuration. Then before you capture the image with sccm. I made a clonezilla image to usb hard drive so that i could go back to it again without having to reinstall all the applications etc. Then i capture the image.

 

Once you have added the wim to the sccm and created the task sequence. I followed the information on this url to inject a copyprofile.xml file on to the task sequence. This then copied the profile that i made to the default profile location.

 

Go in to audit mode as per this forum post.

 

http://www.sevenforums.com/installation-setup/138686-sysprep-basic-possible.html#post1192774

 

To enter Audit mode, press CTRL + SHIFT + F3 when this screen appears during the installation:

133068d1295462095t-sysprep-basic-possibl


When Windows has rebooted to Audit Mode, close Sysprep GUI by clicking Cancel here:

133074d1295462756t-sysprep-basic-possibl

 

http://blogs.technet.com/b/configurationmgr/archive/2010/09/16/how-to-create-a-custom-default-user-profile-in-windows-vista-or-newer-os-when-using-configmgr-2007-osd.aspx

 

Create copyprofile.xml package and add to the task sequence.



    x86

    <?xml version="1.0" encoding="utf-8"?>
    <unattend xmlns="urn:schemas-microsoft-com:unattend">
        <settings pass="specialize">
            <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">
                <CopyProfile>true</CopyProfile>
            </component>
        </settings>
    </unattend>

 

The only things that get reset is the taskbar pinned items. I just used a VB login script that removes the pinned items and adds new ones.

Share this post


Link to post
Share on other sites

  • 0

What I did which works perfectly, was install windows 7, but before it logs in to windows do the ctlr+shift+f3 on the welcome screen to reboot in to audit mode. Then install all your applications and prep the profile for user context configuration. Then before you capture the image with sccm. I made a clonezilla image to usb hard drive so that i could go back to it again without having to reinstall all the applications etc. Then i capture the image.

 

Once you have added the wim to the sccm and created the task sequence. I followed the information on this url to inject a copyprofile.xml file on to the task sequence. This then copied the profile that i made to the default profile location.

 

Go in to audit mode as per this forum post.

 

http://www.sevenforums.com/installation-setup/138686-sysprep-basic-possible.html#post1192774

 

 

http://blogs.technet.com/b/configurationmgr/archive/2010/09/16/how-to-create-a-custom-default-user-profile-in-windows-vista-or-newer-os-when-using-configmgr-2007-osd.aspx

 

Create copyprofile.xml package and add to the task sequence.



    x86

    <?xml version="1.0" encoding="utf-8"?>
    <unattend xmlns="urn:schemas-microsoft-com:unattend">
        <settings pass="specialize">
            <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">
                <CopyProfile>true</CopyProfile>
            </component>
        </settings>
    </unattend>

The only things that get reset is the taskbar pinned items. I just used a VB login script that removes the pinned items and adds new ones.

 

Did you ever get this working and what are the steps?

 

I have made my reference machine but I can't get the sysprep part to work.

 

I think I have to add an unattend.xml file in the Apply Operating System step of my Deployment TS.

 

But it's asking for a package and filename.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.