Monday, July 6, 2009

Customizing the Default User Profile automatically with Configuration Manager

I posted this script some time ago on the myitforum list and I'm just now getting around to blogging about it. I use this script at multiple customers to modify the default user profile without having to copy the administrator profile over the top. This method enables you to add or make changes without having to re-create your image.

item: Insert Line into Text File Pathname=%WIN%\Temp\customizedesktop.log New Text=Starting Log File Line Number=0enditem: Remarkenditem: Remark Text=Loading Default User Hiveenditem: Execute Program Pathname=reg.exe Command Line=load HKU\DefaultUser "c:\documents and settings\defaultuser\ntuser.dat" Flags=00000010enditem: Insert Line into Text File Pathname=%WIN%\Temp\customizedesktop.log New Text=Default User Hive Loaded Line Number=0enditem: Remarkenditem: Remark Text=Disable Windows XP tourenditem: Edit Registry Total Keys=1 Key=DefaultUser\Software\Microsoft\Windows\CurrentVersion\Applets\Tour New Value=0 Value Name=RunCount Root=3 Data Type=3enditem: Remarkenditem: Remark Text=Set Control Panel to Classic View enditem: Edit Registry Total Keys=1Key=DefaultUser\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer New Value=1 Value Name=ForceClassicControlPanel Root=3 Data Type=3enditem: Remarkenditem: Remark Text=Hide Welcome Screenenditem: Edit Registry Total Keys=1Key=DefaultUser\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer New Value=1 Value Name=NoWelcomeScreen Root=3 Data Type=3enditem: Remarkenditem: Remark Text=Disable Fast User Switching Vista end remarked item: EditRegistry Total Keys=1 Key=Software\Microsoft\Windows\CurrentVersion\Policies\System New Value=1 Value Name=HideFastUserSwitching Root=2 Data Type=3enditem: Remark Text=Disable Fast User Switching XPenditem: Edit Registry Total Keys=1 Key=SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon New Value=0 Value Name=AllowMultipleTSSessions Root=2 Data Type=3enditem: Remarkenditem: Remark Text=Show Quick Launch on Task Bar; Not working?enditem: Execute Program Pathname=regedit.exe Command Line=/s %INST%\TaskBarSettings.reg Flags=00001010enditem: Insert Line into Text File Pathname=%WIN%\Temp\customizedesktop.log New Text=Imported Regfile TaskBarSettings.reg Line Number=0enditem: Remarkenditem: Remark Text=Remove Language Barenditem: Edit Registry Total Keys=1 Key=DefaultUser\Software\Microsoft\CTF\LangBar New Value=0 Value Name=ShowStatus Root=3 Data Type=3enditem: Remarkenditem: Remark Text=Set Short Date to MM/DD/YYenditem: Edit Registry Total Keys=1 Key=DefaultUser\Control Panel\International New Value=MM/dd/yy Value Name=sShortDate Root=3enditem: Remarkenditem: Remark Text=Set IE Homepageenditem: Edit Registry Total Keys=1 Key=DefaultUser\Software\Microsoft\Internet Explorer\Main New Value=http://www.systemcentertools.com Value Name=Start Page Root=3enditem: Remarkenditem: Remark Text=Disable Desktop Cleanupenditem: Edit Registry Total Keys=1Key=DefaultUser\Software\Microsoft\Windows\CurrentVersion\Explorer\Desktop\CleanupWiz New Value=1 Value Name=NoRun Root=3 Data Type=3enditem: Remarkenditem: Remark Text=Make My Computer Visible on Desktop 0=show 1=hide enditem: Edit Registry Total Keys=1Key=DefaultUser\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel New Value=0 Value Name={20D04FE0-3AEA-1069-A2D8-08002B30309D} Root=3 Data Type=3enditem: Remarkenditem: Remark Text=Make My Network Places Visible on Desktop enditem: Edit Registry Total Keys=1Key=DefaultUser\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel New Value=0 Value Name={208D2C60-3AEA-1069-A2D7-08002B30309D} Root=3 Data Type=3enditem: Remarkenditem: Remark Text=Make My Documents Visible on Desktop enditem: Edit Registry Total Keys=1Key=DefaultUser\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel New Value=0 Value Name={450D8FBA-AD25-11D0-98A8-0800361B1103} Root=3 Data Type=3enditem: Remarkenditem: Remark Text=Remove Windows Catalog, Set Program Access and Defaults, ActivateWindows from Start Menu enditem: Edit Registry Total Keys=1Key=DefaultUser\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced New Value=0 Value Name=Start_ShowSetProgramAccessAndDefaults Root=3 Data Type=3enditem: Get Environment Variable Variable=ALLUSERS Environment=ALLUSERSPROFILE Default=C:\documents and Settings\All Users enditem: Delete File Pathname=%ALLUSERS%\Start Menu\Set Program Access and Defaults.* enditem: Delete File Pathname=%ALLUSERS%\Start Menu\Activate Windows.* enditem: Delete File Pathname=%ALLUSERS%\Start Menu\Windows Catalog.* enditem: Insert Line into Text File Pathname=%WIN%\Temp\customizedesktop.log New Text=Deleted ALL User Profile files from start menu Line Number=0enditem: Remarkenditem: Remark Text=Show Hidden Filesenditem: Edit Registry Total Keys=1Key=DefaultUser\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced New Value=1 Value Name=Hidden Root=3 Data Type=3enditem: Remarkenditem: Remark Text=Show File Extensionsenditem: Edit Registry Total Keys=1Key=DefaultUser\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced New Value=0 Value Name=HideFileExt Root=3 Data Type=3enditem: Remarkenditem: Remark Text=Launch Explorer Windows in Separate Process enditem: Edit Registry Total Keys=1Key=DefaultUser\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced New Value=1 Value Name=SeparateProcess Root=3 Data Type=3enditem: Remarkenditem: Remark Text=Set Explorer to Details Viewenditem: Edit Registry Total Keys=1 Key=DefaultUser\Software\Microsoft\Windows\ShellNoRoam\BagMRU Root=131enditem: Edit Registry Total Keys=1 Key=DefaultUser\Software\Microsoft\Windows\ShellNoRoam\Bags Root=131enditem: Execute Program Pathname=regedit.exe Command Line=/s %INST%\ExplorerDetailView.reg Flags=00001010enditem: Insert Line into Text File Pathname=%WIN%\Temp\customizedesktop.log New Text=Imported Regfile ExplorerDetailView.reg Line Number=0enditem: Remarkenditem: Remark Text=Copy/Set Windows Wallpaperenditem: Copy Local File Source=%INST%\a-dec.bmp Destination=%win%\web\wallpaper\sct.bmp Flags=0000000001100010enditem: Edit Registry Total Keys=1Key=DefaultUser\Software\Microsoft\Windows\CurrentVersion\Policies\System New Value=%win%\web\wallpaper\sct.bmp Value Name=Wallpaper Root=3enditem: Edit Registry Total Keys=1 Key=DefaultUser\Control Panel\Desktop New Value=%win%\web\wallpaper\sct.bmp Value Name=Wallpaper Root=3enditem: Insert Line into Text File Pathname=%WIN%\Temp\customizedesktop.log New Text=Copy Wallpaper Line Number=0enditem: Remarkenditem: Execute Program Pathname=reg.exe Command Line=unload HKU\DefaultUser Flags=00000010enditem: Insert Line into Text File Pathname=%WIN%\Temp\customizedesktop.log New Text=Default User Hive Un- Loaded Line Number=0enditem: Remarkenditem: Remark Text=Enable Remote Desktopenditem: Edit Registry Total Keys=1 Key=system\currentcontrolset\control\terminal server New Value=0 Value Name=fDenyTSConnections Root=2 Data Type=3enditem: Remarkenditem: Remark Text=Install/Copy Customer Font.enditem: Copy Local File Source=%INST%\PC_FONTS\*.* Destination=%WIN%\FONTS\ Flags=0000000001100010enditem: Remarkenditem: Remark Text=Disable Firewall for Domain Profile enditem: Edit Registry Total Keys=1 Key=Software\Policies\Microsoft\WindowsFirewall\DomainProfile New Value=0 Value Name=EnableFirewall Root=2 Data Type=3enditem: Edit Registry Total Keys=1 Key=Software\Policies\Microsoft\WindowsFirewall\StandardProfile New Value=0 Value Name=EnableFirewall Root=2 Data Type=3enditem: Remarkenditem: Remark Text=Disable Automatic Updatesenditem: Edit Registry Total Keys=2 item: KeyKey=Software\Microsoft\Windows\CurrentVersion\WindowsUpdate\AutoUpdate New Value=1 Value Name=AUOptions Root=2 Data Type=3 end item: KeyKey=Software\Microsoft\Windows\CurrentVersion\WindowsUpdate\AutoUpdate New Value=1 Value Name=AUState Root=2 Data Type=3 endenditem: Remarkenditem: Remark Text=Disable Security Center Alert Notifications enditem: Edit Registry Total Keys=3 item: Key Key=Software\Microsoft\Security Center New Value=1 Value Name=AntiVirusDisableNotify Root=2 Data Type=3 end item: Key Key=Software\Microsoft\Security Center New Value=1 Value Name=FirewallDisableNotify Root=2 Data Type=3 end item: Key Key=Software\Microsoft\Security Center New Value=1 Value Name=UpdatesDisableNotify Root=2 Data Type=3 endenditem: Remarkenditem: Remark Text=Edit Page File Memory Sizeenditem: Edit Registry Total Keys=1 Key=SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management New Value=c:\pagefile.sys 4092 4092 New Value= Value Name=PagingFiles Root=2 Data Type=2enditem: Remarkenditem: Remark Text=Rename Administrator and Create Desktop User end remarked item:Execute Program Pathname=%win%\system32\cscript.exe Command Line=%inst%\renameadmin.vbs Flags=00001010enditem: Remarkenditem: Remark Text=Add Desktop User to Local administrators group enditem: Remarkenditem: Remark Text=Remove Games, OE, and MSN Explorer enditem: Execute Program Pathname=%win%\system32\sysocmgr.exe Command Line=/i:%win%\inf\sysoc.inf /u:%inst%\ocm.txt /q /r Flags=00001010enditem: Insert Line into Text File Pathname=%WIN%\Temp\customizedesktop.log New Text=Removed Games and others... Line Number=0enditem: Remarkenditem: Remarkenditem: Delete File Pathname=%ALLUSERS%\Start Menu\Programs\Games\* Flags=00000100enditem: Delete File Pathname=%ALLUSERS%\Start Menu\Programs\Games Flags=00000100enditem: Execute Program Pathname=cmd.exe Command Line=/c rmdir "%allusers%\start menu\programs\games" /s /q Flags=00001000enditem: Delete File Pathname=%ALLUSERS%\Desktop\InterVideo WinDVD.lnk enditem: Insert Line into Text File Pathname=%WIN%\Temp\customizedesktop.log New Text=Deleted Games Folder and Misc shortcuts Line Number=0end

2 comments:

Anonymous said...

Is this for XP? from what I can see it is....

Does something similar work for Windows 7 aswell?

Anonymous said...

Thanks you share with me this excellent post.This blog give me a good and relevant info related my topic...browser bookmarks.