Symantec Connect
  • Login
  • Register
  • Endpoint Management & Virtualization
    • All of Connect
    • Backup and Archiving
    • Endpoint Management & Virtualization
    • Storage and Clustering
    • Security
    • Inside Symantec
    • Vision User Conference
    • Partners
    • Developers
    •  
  • Overview
  • Forums
  • Articles
  • Blogs
  • Downloads
  • Events
  • Videos
  • Groups
  • Ideas
Login to participate
Endpoint Management & Virtualization Community BlogRSS

Copy Admin Profile to Default User

trb48's picture
trb48
August 12th, 2008
Filed under: Configuring, Endpoint Management & Virtualization Community Blog, Endpoint Management and Virtualization

We are trying to move to Active Directory authentication at work. We have bumped into a few problems. The one I solved today deals with user profiles.

Right now when we setup a computer for a user, we create a generic account "localuser" and tweak it just the way we like it. We also install all of the programs we need while logged into that account. This one account has the windows profile and software configured correctly.

When you log into a machine using Active Directory, Windows will create a new account for you. As you probably know, in C:\Documents and Settings there is a folder called "Default User". This is the user profile template. When a new user is created Windows uses the contents of this folder to create the user.

The Default User account is not configured correctly, and the account that we created (the localuser) account does. I was not sure how to fix this problem until I found this post: Copy Admin profile to Default user.

BoaSoft posted the following script:

rem delete old Default User profile
RD /s /q "%systemdrive%\Documents and Settings\Default User"

rem copy current user profile to default user profile
xcopy "%USERPROFILE%\*.*" "%systemdrive%\Documents and Settings\Default User" /e /c /I /H /R /K /Y 
rem delete non-need some files 
del /f /q "%systemdrive%\Documents and Settings\Default User\*.*" 
rem set default attributes
attrib +h "%systemdrive%\Documents and Settings\Default User"

rem registry trick
rem no directly copy locked ntuser.dat file
rem use reg tools to save current user registry to file
reg save HKCU "%systemdrive%\Documents and Settings\Default User\ntuser.dat"
rem set default attributes to hive file 
attrib +H +S "%systemdrive%\Documents and Settings\Default User\ntuser.dat"

I tweaked it to match Windows defaults.

When you run this script, it copies all of the profile settings in the currently logged in account to the default user profile. Now, every account that Windows creates will have all the correct settings.

0 votes
  • trb48's blog
  • Login or register to post comments
  • Comments RSS Feed
setral's picture
setral
1 year 31 weeks ago

Noticed an error

I just noticed an error in the script, I tried it out and noticed there is a minor mispelling.

the line:
xcopy "%USERPROFILE%\*.*" "%systemdrive%\Document and Settings\Default User" /e /c /I /H /R /K /Y

Should be:
xcopy "%USERPROFILE%\*.*" "%systemdrive%\Documents and Settings\Default User" /e /c /I /H /R /K /Y

0 votes
  • Login or register to post comments
ianatkin's picture
ianatkin
1 year 31 weeks ago

Pretty good, but some caveats (aren't there always??!)

We used to copy the default profile like this, but we hit some problems; Some software from naughty vendors use hardcoded paths in the registry for config files. This can give odd problem when the new user logs in, and tries to run the software. Further, this process doesn't cater for users who already have an account on the machine as a result its only for apps created within the image for first image deployment.

As a result of being burned a few times, we had to take the view that each software package we built had to cater for the multi-user environment within the package itself. As such, we make use of,

  1. ActiveSetup
  2. Reg and Filesystem Packages execute on user logon
  3. Regmon and Filemon to monitor the changes made by applications to the default and existing user profiles -changing the behaviour where neccessary

If you can get away with it -copying the default profile is great and I am jealous of all those that can get away with it! If only we had the power to outlaw such badly written application in some IT Court of Justice.

Here are a couple of links to some ActiveSetup docs for anyone wanting to run config changes when the user logs on,

Juice Article by Yukon
Wikipedia Article
Article by Ed Tippelt

Kind Regards,
Ian./

Ian Atkin
Senior Developer for the ICT Support Team,
Oxford University, UK

Connect Etiquette: Please "Mark as Solution" those posts which resolve your problem, and give a thumbs up to useful comments, articles and downloads!

0 votes
  • Login or register to post comments
lotsill's picture
lotsill
1 year 31 weeks ago

You really don't want to

You really don't want to run this on existing profiles as existing setting can and does get messed up!

It is easier and the process is cleaner to edit the ntuser.dat from the Default Users profile directly to customize profile settings.

If you have several different images for each model, you can then edit the image and replace the ntuser.dat with the one you created.

0 votes
  • Login or register to post comments
Stu Harris's picture
Stu Harris
1 year 30 weeks ago

MS says don't use Administrator

I found this article http://support.microsoft.com/kb/319974 saying not to use the Administrator profile because of potential permissions issues.

Stu
ITS Partners
LinkedIn

0 votes
  • Login or register to post comments

Would you like to reply?

Login or Register to post your comment.

About Endpoint Management and Virtualization Community Blog

The Endpoint Management & Virtualization Community Blog is the perfect place to share short, timely insights including product tips, news and other information relevant to the Endpoint Management & Virtualization community. Any authenticated Connect member can contribute to this blog.
Filter by:

Recent Blog Posts

  • How to Install and Uninstall IBM Installation Manager using XML files
    WiseUser - March 18, 2010
  • Future Tech - Silverlight and phones (Altiris future mobiltity)
    Palvaran - March 16, 2010
  • Webcast - Redefining Endpoint Management with Altiris IT Management Suite 7.0 from Symantec
    ohzone - March 15, 2010
  • USB Swiss Army Knife: 7 Quick Fix
    riva11 - March 12, 2010
  • Cebit is over. What will be our next big show?
    erikw - March 12, 2010

Blog Tags

7.1 Agents Altiris Client Management Suite Altiris Deployment Solution Altiris IT Asset Management Altiris Notification Server Altiris Recovery Solution Altiris Server Management Suite Asset Management Suite Backup Exec Backup Exec System Recovery Basics Best Practice Beta CIO Digest Case Study Compatibility Configuring Customer Preview Customer Reference Database Dell Dell Management Products Demonstration Documentation Downloads Drivers Emerging Threats Endpoint Management and Virtualization Endpoint Protection (AntiVirus) Enterprise Vault Error messages Evaluating Features General Symantec Ghost Solution Suite HP Management Products Helpdesk Solution How to ITMS Industry Event Inside Symantec Installing Licensing Linux Local DS GURU Email group Mac OS ManageFusion Mobile & Wireless NetBackup New Release News News Performance Platforms & Hardware Problem Management Recovering Reporting Restore SP2 SecurityExpressions Service Pack 2 ServiceDesk Storage Foundation Symantec Connect Symantec Event TMS TechTips Tip/How to Tips/How To Training Troubleshooting Upgrade User Group VDI VMware Virtualization Virtualization Vision Vulnerabilities & Exploits Windows Windows Wise Application Packaging Wise Installation Development Wise Virtual Composer Workflow Solution Workspace Corporate Workspace Profiles Workspace Remote Workspace Streaming Workspace Virtualization XPF baltimore deployment hugo known_issue pcAnywhere solution webcast
© 2010
  • Symantec Corporation
  • Contact Us
  • Get RSS
  • Privacy Policy
  • Symantec.com