Windows 7 Default User Profile with ConfigMgr
- Details
- Last Updated on Wednesday, 06 June 2012 13:14
- Written by Adrian Gordon
There have been some changes for how you can customise the default user profile in Windows 7.
Microsoft have disabled the standard ‘Copy Profile’ tool and will only support profile copying when done with sysprep.
There are a few limitations for using sysprep to copy the profile:
- If you’re using an automated ‘build and capture’ task sequence with ConfigMgr (SCCM) you’re unable to log on and make the customisations to the profile before ConfigMgr captures the image
- Some changes will not be copied. Microsoft has not documented which settings and files get copied. For example, it will not save most taskbar or start menu customisations.
Microsoft’s solution to this is using Group Policy preferences, however they’re still quite limiting and doesn’t provide complete customisation to the profile. For example, you’re unable to enable the “My Computer” icon on the desktop or specify the default background colour for new users. Another good example of the incompleteness with this method is you can change the control panel to have the ‘icon view’ however you cannot select if you want large or small icons.
After some investigation and testing I’ve found that editing the profile through targeted registry changes is the only consistent way to change the default profile. This is also a method which Microsoft will support.
The following instructions will allow you to add profile customisation to your ConfigMgr OS Deployment Task Sequence.
Changes applied:
- Force Classic Control Panel – Small icons
- Show the desktop icons for Computer, User's Files, and Internet Explorer
- Disable Microsoft Office first run message
- Disable Microsoft Communicator First Run Tour
- Set default theme (which applies the background colour)

Step 1: Create a custom Windows 7 Theme file
- Log on to a Windows 7 computer
- Right-click on the desktop and select ‘Personalization’
- Modify the profile as desired and then click on ‘Save theme’
- Save the theme file as ‘Win7Profile.theme’
- Navigate to C:\Users\%UserName%\AppData\Local\Microsoft\Windows\Themes

- Save the theme file to your temporary working folder, e.g. your desktop.
Step 2: Create the customisations script
- In the temporary working folder, create a new text file called ‘Win7ProfileCustom.cmd’
- Add the following text
REM ###################################################
REM ###################################################
REM ##
REM ## Apply customizations to Default User profile
REM ##
REM ###################################################
REM ###################################################
REM ##################
REM # Registry Edits #
REM ##################
REM **********************************
REM Load Default User registry hive
REM **********************************
reg load HKU\DefaultUser "C:\Users\Default\ntuser.dat"
REM ******************************
REM Force Classic Control Panel
REM ******************************
reg add "HKU\DefaultUser\Software\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel" /v StartupPage /d 1 /t REG_DWORD /f
reg add "HKU\DefaultUser\Software\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel" /v AllItemsIconView /d 1 /t REG_DWORD /f
REM *************************************************************************
REM Show the desktop icons for Computer, User's Files, and Internet Explorer
REM *************************************************************************
REM Show Computer icon on the desktop
REG ADD "HKU\DefaultUser\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel" /v "{20D04FE0-3AEA-1069-A2D8-08002B30309D}" /t REG_DWORD /d 0 /f
REM Show User's Files icon on the desktop
REG ADD "HKU\DefaultUser\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel" /v "{59031a47-3f72-44a7-89c5-5595fe6b30ee}" /t REG_DWORD /d 0 /f
REM Show Internet Explorer icon on the desktop
REG ADD "HKU\DefaultUser\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel" /v "{871C5380-42A0-1069-A2EA-08002B30309D}" /t REG_DWORD /d 0 /f
REM *****************************************************
REM Disable Microsoft Office first run message
REM *****************************************************
reg add "HKU\DefaultUser\Software\Microsoft\Office\12.0\Common\General" /v ShownOptIn /d 1 /t REG_DWORD /f
REM *****************************************************
REM Disable Microsoft Communicator First Run Tour
REM *****************************************************
reg add "HKU\DefaultUser\Software\Microsoft\Communicator" /v TourPlayed /d "1" /t REG_DWORD /f
REM *****************************************************
REM Set default theme
REM *****************************************************
reg add "HKU\DefaultUser\Software\Policies\Microsoft\Windows\Personalization" /v Themefile /d "%systemroot%\Resources\Themes\Win7Profile.theme" /t REG_SZ /f
REM ***********************************
REM Unload Default User registry hive
REM ***********************************
reg unload HKU\DefaultUser
Step 3: Copy to your deployment share
To allow the ConfigMgr/SCCM task sequence to run the script you need to save it to a shared folder which can be accessed during the 'build and capture' process.
- Copy both of these files to your OS Deployment package on SCCM, for example in the MDT Toolkit package.
- Distribute the package to your distribution points.
Step 4: Update your task sequence
- Edit your ‘build and capture’ task sequence
- Add two new script elements, these need to be after Windows 7 and applications are installed.
- Note: if %deploymentshare% is not a valid variable in your environment you may need to specify the full share path
Cmd /c copy "%osdeploymentshare%\Win7ProfileCustom.cmd" "C:\Windows\Setup\Scripts\SetupComplete.cmd"
Cmd /c copy "%osdeploymentshare%\Win7Profile.theme" "C:\Windows\Resources\Themes\"

Step 5: Test it out
- Save the changes and run a new ‘build and capture’ to test.
Help! It's not working!
Here are some tips to get you on your way:
- Is the script running? Try applying the customisations to a standalone Windows 7 PC. You will need to save the theme file into the C:\Windows\Resources\Themes folder then run the customisations script. Log on as a new user (or a user which hasnt logged into the computer yet) and verify if the profile customisations have applied. If it has - your issue isn't with the script, it's at the 'build and capture' stage.
- Can you access the deployment share during the build and capture process? Enable the F8 support (if you haven't already), during the build and capture process, roughly when the script is meant to run press F8 - the Windows command prompt should appear. Manually type out the two commands - is there an error message? What does it say?
- Access denied? the account does not have access to the deployment share
- File not found? did you type the command correctly? Is the command correct at all? Try running it on a standard Windows 7 system - does it work there?
|
To use- extract the ZIP file and run 'install.cmd' as Administrator. Log on a new user (a user which hasnt logged into the computer before, and/or doesn't have a profile already!) Full Download: http://mockbox.net/downloads/Windows7CustomiseProfile.zip |
Add comment
If you are having issues with the content covered we ask that you ensure you have followed the steps as detailed, then in your comment state THE STEP NUMBER which you are stuck at and any other relevant technical information (Mac or Windows, operating system version, Internet browser etc.).
We would like to help where possible, and this helps us help you! :)
-
174 hits38 days agoWhat is a .Pages file? .Pages files (dot pages) are documents which are created on Apple Mac systems using the iWorks software package. When an iWorks user saves their document they can choose the f...
-
155 hits38 days agoThe Offline Files feature of Windows 7 allows you to cache copies of files on your computer so you can access them when the computer is off the network. This feature is usually configured by a network...
-
482 hits104 days agoThe Recent Items folder (previously called Recent Documents in Windows XP) is used by Windows to record what documents have been opened. The list is displayed in the Windows start menu either under th...
-
417 hits104 days agoUnlike previous versions of Windows, by default Windows 7 does not have a 'Recent Items' (previously known as 'Recent Documents' in Windows XP) option in the Start Menu. This menu option allows users...
-
1829 hits110 days agoProblem: Shortcuts on the desktop are automatically being removed. Applies to: Windows 7All Editions Solution: Windows 7 has a built in maintenance feature called ‘The System Maintenance troublesh...
-
15391 hits162 days agoProblem When you attempt to use their provided plugin you receive an error message which says 'This gadget requires Microsoft Office Outlook 2007'. Solution Looking ...
-
968 hits4 days agoAdvertising website addresses without the 'www.' is a growing trend. It's smaller, concise and gives the domain name the first bit of attention. However not all websites are prepared to accept or work...
-
1217 hits4 days agoAdd Dock Icon with MAC OS 10.4 1. Open the Applications window by selecting the Go menu and then clicking on Applications 2. Select the icon for the program that you want to add to the Dock.3. Click...
-
224 hits28 days agoQuestion What does the 'Show on (Viewer) Panel' option do in Crystal Reports? Answer The 'Show on (Viewer) Panel' option in a Crystal Report parameter field controls whether the parameter is disp...
-
188 hits34 days agoProblem When making or receiving calls the speaker automatically turns on. It can be turns off by pressing the speakerphone button but is always turned on when answering and making calls. Applies to...
Latest comments
-
Install and Configure Firefox 20 silently
YesterdayHi epuariea, Thanks for the info. What i am really looking is setting the Firefox 21 home page ... -
Install and Configure Firefox 20 silently
YesterdayYes when the Default home page is set it's sort of lockes the setting, as your noticing. What we did ... -
Install and Configure Firefox 20 silently
2 days agoHI, I am trying to install Firefox 21 by setting the default home page through prefs.js file in ... -
VBS Script - Get Monitor Serial Number Remotely
2 days agoIs there a way to wildcard the program files folder so it looks in any & all sub-directories ? EX ... -
Install and Configure Firefox 20 silently
2 days agoI had the same problem. The file override.ini should contain: EnableProfileMigrator=0 The file should ...

Comments
Actually I was searching for someone who can correct my mistake.
This Guide was really helpful for me.
thank you so much [potential spam link removed]
I have created a run Command line named Copy Custom profile and in the command line I have cmd.exe /c copy “\\Servername\s etup\SCCM\Scrip ts\Win7ProfileC ustom.cmd” “C:\Windows\Setup\Scripts\SetupComplete.cmd”
After the image finishe the profile is not how it supposed to be and when I check setupcomplete.c md the .cmd is not copied here.
Any ideas?
I have the Copy Custom profile at the very last step before the "Restart Computer"
The first thing I would check is if the command works when you type it in manually.
Have you enabled the F8 feature for your deployment yet?
If so, hit F8 at that stage of the deployment and try typing out the command. Take note of the error messaage.
One other thing to check is if the account running the command has access to the folder on the server. Perhaps log onto a standard workstation using the account and try running the command from an Elevated Command Prompt?
I hope you can work the problem out. This solution took some time to perfect but it resulted in us being able to deploy a perfectly customised Win 7 to our end users.
It made our deployment and training so much easier in the long run.
Forgive me for being vague, it's been well over a year since I've had to manage the Windows 7 deployments.
From memory I did try to 'pin' some items to the taskbar and 'Windows' start menu and found it troublesome.
I think the trick was shortcuts cant be pinned, only applications?
Any how, I do think it will get quite complicated trying to do this, but here's a step in (what appears to be) the right direction!
Pin Items to the Start Menu or Windows 7 Taskbar via Script
reg add "HKU\DefaultUse r\Software\Poli cies\Microsoft\ Windows\Persona lization" /v Themefile /d "%systemroot%\R esources\Themes \Win7Profile.th eme’" /t REG_SZ /f
and insert this into my task sequence as a run command line item? If I insert a run command line item above this one that loads the default user hive and then stick a third run command line item after the main one that unloads the hive.... any advice?
I had inconistent results when running the DOS commands straight from the task sequence.
I highly recommend you contain all the DOS customistation commands in a CMD file called 'SetupComplete. cmd' and have it saved to C:\Windows\Setu p\Scripts\Setup Complete.cmd during the task sequence process.
If you're not already aware, SetupComplete.c md is automatically detected and ran by Windows 7 the first time Windows 7 loads.
Hopefully this makes sense!
Thanks again!
From memory the SetupComplete.c md script runs right before the logon screen appears.
There's also a log somewhere which shows if it was run and what it did - however my memory isnt that great!
Here's the Microsoft page about it all: technet.microsoft.com/.../...
Could you lay out the steps for me? I would really appreciate it.
No, you do not need to use the 'CopyProfile' option.
The 'CopyProfile' option will only apply changes which have been made manually to the last logged on and modified profile, which is not an option when you're steamlining a 'build and capture' Task Sequence in SCCM.
This method modifies the default user registry hive.
This page has more information about the different options available when needing to customise the Windows 7 Default User Profile - mockbox.net/.../...