Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Here's how to create a Default Profile without using SysPrep

02 Jul 2012   #1
badshah

Windows 7 32-bit
 
 
Here's how to create a Default Profile without using SysPrep

OS: Windows 7

I have been looking at how to create a default profile without using SysPrep. There is a lot of information on the web on how it could be done in XP by just using a "copy to" command, and how it is not possible under Windows 7. The officially supported method from Microsoft involves using SysPrep. Official method despite being too complex for most also has the added disadvantage that it is meant to be used when setting up an image for deploy. I needed a method that I could use on a PC during any stage of its life cycle (i.e. both pre-deploy and post-deploy times) without going through SysPrep.

There are several ways listed on the web on how to "fool" Windows into accepting any profile as Default. A sampling of those methods is: creating a user and then copying its c:\users folder and renaming it to Default, OR updating DefaultProfile registry key to point to the desired profile's folder, OR using a hack to enable 'Copy To' button in Windows Profiles dialog box, etc. All of those methods work to an extent BUT also result in side-effects to solve which MS brought up the SysPrep method. I have also come across methods which attempt to resolve these issues by running a bat file to update certain registry keys upon every logon. That wasn’t acceptable to me either due to extra overhead of maintaining a bat file/login script, etc.

After much trial and error, I have been able to combine information from various sources (with some of my own tries sprinkled in ), and have come up with the following method of editing and updating Default profile WITHOUT having to use SysPrep AND avoiding much (if not all) drawbacks of using a non-SysPrep method. Please try it and post your success rate here so I can validate its usefulness. I have been satisfied with my testing but need to see how others find it.

Steps:

Please note that you can do it at any time: during image prep, on a deployed PC, audit mode, non-audit mode, you name it...

1. Login as Administrator
2. Create a user (at this time, the Default profile is the original Windows one). Let's call it to_be_default
3. Login as that user and do whatever customizations you need to make (desktop, power options, IE settings, etc)
4. Log off and login as Administrator
5. Do a copy and then paste of the new user folder in C:\users. You will end up with a folder named "to_be_default - Copy" in C:\Users folder.
6. Rename C:\Users\Default to something like c:\users\Default_original. This will be the backup copy you can fall back to if things go wrong.
7. Rename "c:\users\to_be_default - copy" to c:\users\Default.
8. Verify that 'Everyone' and 'Users' have "Read & execute", "list folder contents", and "read" permissions on this newly renamed c:\users\Default folder.
9. Run this in cmd window with c:\users as current directory: "attrib +H +S Default"
10. Run regedit as Administrator (required even if you are logged in as Administrator or Load Hive command will not be active in File menu)
11. Click on HKEY_LOCAL_MACHINE and then on Load Hive in File menu (note: load hive may not be active until you click on HKLM).
12. Select c:\users\Default\ntuser.dat
13. regEdit will ask for a name for this hive's node. Give it any name (let's call it Default Profile)
14. Click on the new Default Profile node which just created in regedit under HKLM, and then select Export from File menu. It will export out entire key structure present under new "Default Profile".
15. Open the newly created .reg file in notepad. It is important to open in Notepad because you need the end file to have ANSI coding.
16. Search for the following and change Username from to_be_default to Default.
[HKEY_LOCAL_MACHINE\Default Profile\Software\Microsoft\Active Setup\Installed Components\{44BBA840-CC51-11CF-AAFA-00AA00B6015C}]
"Version"="6,1,7601,17514"
"Locale"="*"
"Username"="to_be_default" <-- Change to "Default"
17. Do a bulk copy and replace as following:
Search for: c:\\users\\to_be_default
Replace with: %USERPROFILE%
18. Save your edits and close Notepad.
19. Back in Regedit, select Import from the File menu and select the .reg file you just edited and saved.
20. Accept any warnings, and continue. If import fails with an error message that .reg file is not a registry file, make sure you used Notepad for above steps. To fix this error, just reopen the .reg file in Notepad and hit save.

You are now done. From this point on, if you create a user, it will inherit Default settings as you configured in step #3 above, and the new user’s registry settings will all be pointing to right locations (i.e. no cross talk, and pointing back to wrong user folders, etc).

PLEASE DO LET ME KNOW WHAT YOU THINK OF THE ABOVE AND WHAT YOUR TESTING REVEALS. We intend to use it in production environment where we manage hundreds of PC's. This message of editing Default profile will save us a lot of time and effort. Please do let me know what you think about this approach.

Thanks and I am glad if it works for you.....


My System SpecsSystem Spec
.
02 Jul 2012   #2
SIW2

Microsoft Community Contributor Award Recipient

Vista x64 / 7 X64
 
 

That looks like it should work.

Similar to what I do when building pe (except when building pe I use the default hive itself - not ntuser, because I point the profileimagepath at x:\users\default )
My System SpecsSystem Spec
13 Aug 2012   #3
SWWeatherGuy

Windows 7 64-bit Professional
 
 

I am very interested in a "Default Profile" setup for Windows 7 (64-bit, Pro) as described in this thread but I haven't been able to follow these steps successfully. Specifically, in steps 9-12 I cannot see a NTUSER.DAT file or any NTUSER.* file(s). If I change C:\User\Default to attrib -H -S, then I can then see a single NTUSER.DAT.LOG file in C:\User\Default. Any ideas what I may have done/didn't do or just something else to try? Thanks.
My System SpecsSystem Spec
.

13 Aug 2012   #4
SIW2

Microsoft Community Contributor Award Recipient

Vista x64 / 7 X64
 
 

go to folder options. Untick "hide protected operating system files", ok the pop up.

Now paste this into command prompt:

%windir%\explorer.exe "%systemdrive%\Users\Default"
My System SpecsSystem Spec
13 Aug 2012   #5
pricetech

Windows 7 Professional 64 bit
 
 

You don't specifically say whether you used Windows Enabler or not. I have, but only once so far. I haven't seen any issues yet, but the jury is still out.

It sounds like your method would work though. Good luck with it.
My System SpecsSystem Spec
15 Feb 2013   #6
PoppaJoe

Windows 7 Ultimate x64
 
 

You left a step out at the end to unload the hive from the registry which if left loaded in the registry editor will cause the default profile to fail to load for a new user.
My System SpecsSystem Spec
17 Feb 2013   #7
A Guy

Microsoft Community Contributor Award Recipient

Windows 7 Home Premium x64 SP1
 
 

Welcome to Seven Forums PoppaJoe. Nice addition. A Guy
My System SpecsSystem Spec
01 May 2013   #8
NoleTideNole

Windows 7 Ultimate x64
 
 

BadShah,

Great work, helped me out considerably so thanks for your efforts.

In Steps 16 & 17, I think that you also need to add doing a Search and Find Next for "to_be_default" by itself as there are a few other references in the reg file that are not found with the "c\\users\\to_be_default" search and replace. And you can't do a mass search and replace either because there are a few additional "Username=to_be_default" keys as well. I did a Find Next search and went one by one.

Feel free to correct me if I'm wrong and these are unnecessary steps.
My System SpecsSystem Spec
01 Dec 2013   #9
tubaphonium

Windows 7 Enterprise x64
 
 

I know that it's a bit late for your purposes, but I have found your method quite trustworthy.

I have also tested the use of it on a computer with a slightly different image applied to it using a copy of the newly created "Default" profile and the "Default-Profile.reg" update. It worked without a problem.

Thanks for posting your findings!
My System SpecsSystem Spec
05 Mar 2014   #10
Ustramator

Windows 7 Ultimate x64
 
 
Great Guide

The best guide I have found so far. Please add the "unload hive to your list, because people may not read (or print) the comments.
Thank you very much
My System SpecsSystem Spec
Reply

 Here's how to create a Default Profile without using SysPrep




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
IE 11 Default Search Provider Resets After Sysprep
I'm trying to make a Windows 7 Ent. x64 image for deployment but for the life of me I can't get the default search provider to stick after the workstation syspreps. I've followed Microsoft's instructions and added a section in my answer file that adds Google as a search provider, but when I try to...
Installation & Setup
User Profile Service - default profile
Has anyone come across this issue happening frequently lately .... In the past 3 weeks I must have had 20+ PC's / Laptops that have had the same problem (see image below) Although I know how to fix it and I have had it crop up before, I've never had it hit so many units in such a short space...
General Discussion
Sysprep - Windows 7 - unable to sysprep image that joins domain
Good morning all: Below is my unattend.xml. I am using the sysprep + win7 for creating virtual machines in Red Hat Enterprise Virtualization 3.0 but having difficulty getting them to auto-join the domain. My sysprep progression proceeds normally and completes. The initial boot of the image...
Virtualization
Does Sysprep Copy profile work or not?
I am trying to sysprep a test machine since we will have to be switching to windows 7. I have done a clean install of windows 7 and the only thing I am putting into the WAIK answer file is copy profile=true in specialize pass. However I cannot get it to work at all. I get an error about not...
Installation & Setup
problem with Sysprep changing the default program for .mov files
I have a problem with Sysprep changing the default program for .mov files (and other Apple files) from Quicktime or VLC to Windows Media Player. I'm looking for a way to change these settings back after Sysprep is complete using either a .reg file or a VBS script. (I've tried using an AutoIT...
General Discussion
How to change default profile/computer name?
Hi. i'm sorry if i ask something dumb coz i am! i'm new in using windows 7 and dont know how to cook the system. all i can operate is the one and only microsoft word. so here's my problem: my laptop was reinstalled. and when i checked it, i found the default profile (or computer?) name changed to...
Customization


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd

All times are GMT -5. The time now is 14:59.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App