Skip to content

Configure default user profile while deploying windows 7

Featured Replies

  • Author

I dont know if anyone wants to know but i have a script now that does the job nicely, hope it helps someone.

 

Just run this in the TS using the cscript.exe %scriptroot%\win7config.vbs

 

 

dim strAllUsersDesktopPath, strUserProfilesDefaultFolder, strUserProfilesAdminFolder, strFileExt, strSharWiz, strCheckBox

dim objWshShell

 

Set objWshShell = WScript.CreateObject("WScript.Shell")

strAllUsersDesktopPath = objWshShell.RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\Common Desktop")

' Attempts to configure Windows 2000/XP paths.

strUserProfilesDefaultFolder = Mid(strAllUsersDesktopPath,1,InStr(strAllUsersDesktopPath, "\All Users"))

If strUserProfilesDefaultFolder = "" Then

' Attempts to configure Windows Vista/7 paths.

strUserProfilesDefaultFolder = Mid(strAllUsersDesktopPath,1,InStr(strAllUsersDesktopPath, "\Public"))

End If

 

'=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

'Default User

'=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

objWshShell.Run ("reg.exe load HKEY_USERS\CustomizeDefaultUserProfile """ & strUserProfilesDefaultFolder & "Default User\NTuser.dat"""), 0, True

 

'=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

'Settings

'=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

'Set the registry key to turn off the Hidden File Extension folder option

objWshShell.RegWrite "HKEY_USERS\CustomizeDefaultUserProfile\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\HideFileExt", "0","REG_DWORD"

 

'=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

'Start Menu

'=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

'Set the registry key to Hide My Music from the Start Menu

objWshShell.RegWrite "HKEY_USERS\CustomizeDefaultUserProfile\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Start_ShowMyMusic", "0","REG_DWORD"

'Set the registry key to Hide My Games from the Start Menu

objWshShell.RegWrite "HKEY_USERS\CustomizeDefaultUserProfile\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Start_ShowMyGames", "0","REG_DWORD"

'Set the registry key to Show Downloads on the Start Menu

objWshShell.RegWrite "HKEY_USERS\CustomizeDefaultUserProfile\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Start_ShowDownloads", "0","REG_DWORD"

'Set the registry key to Hide My Pictures from the Start Menu

objWshShell.RegWrite "HKEY_USERS\CustomizeDefaultUserProfile\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Start_ShowMyPics", "0","REG_DWORD"

'Set the registry key to Stop Highlighting new programs in the Start Menu

objWshShell.RegWrite "HKEY_USERS\CustomizeDefaultUserProfile\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Start_NotifyNewApps", "0","REG_DWORD"

'Set the registry key to remove Default Programs from the Start Menu

objWshShell.RegWrite "HKEY_USERS\CustomizeDefaultUserProfile\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Start_ShowSetProgramAccessAndDefaults", "0","REG_DWORD"

'Set the registry key to Show Administrator Tools menu

objWshShell.RegWrite "HKEY_USERS\CustomizeDefaultUserProfile\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Start_AdminToolsRoot", "2","REG_DWORD"

objWshShell.RegWrite "HKEY_USERS\CustomizeDefaultUserProfile\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\StartMenuAdminTools", "1","REG_DWORD"

objWshShell.RegWrite "HKEY_USERS\CustomizeDefaultUserProfile\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Start_AdminToolsTemp", "2","REG_DWORD"

 

'=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

'Control Panel

'=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

'Set the Control Panel View to Small Icons

objWshShell.RegWrite "HKEY_USERS\CustomizeDefaultUserProfile\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\ForceClassicControlPanel", "1","REG_DWORD"

 

'=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

'Desktop Icons

'=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

'Show Computer on All User's Desktop

objWshShell.RegWrite "HKEY_USERS\CustomizeDefaultUserProfile\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel\{20D04FE0-3AEA-1069-A2D8-08002B30309D}", "0","REG_DWORD"

'Show User Folders on All User's Desktop

objWshShell.RegWrite "HKEY_USERS\CustomizeDefaultUserProfile\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel\{59031a47-3f72-44a7-89c5-5595fe6b30ee}", "0","REG_DWORD"

'Show Network on All User's Desktop

objWshShell.RegWrite "HKEY_USERS\CustomizeDefaultUserProfile\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel\{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}", "0","REG_DWORD"

 

'Unload the Default User profile registry hive

objWshShell.Run ("reg.exe unload HKEY_USERS\CustomizeDefaultUserProfile"), 0, True

 

'Administrator

 

 

'=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

'Settings

'=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

'Set the registry key to turn off the Hidden File Extension folder option

objWshShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\HideFileExt", "0","REG_DWORD"

 

'=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

'Start Menu

'=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

'Set the registry key to Hide My Music from the Start Menu

objWshShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Start_ShowMyMusic", "0","REG_DWORD"

'Set the registry key to Hide My Games from the Start Menu

objWshShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Start_ShowMyGames", "0","REG_DWORD"

'Set the registry key to Show Downloads on the Start Menu

objWshShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Start_ShowDownloads", "0","REG_DWORD"

'Set the registry key to Hide My Pictures from the Start Menu

objWshShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Start_ShowMyPics", "0","REG_DWORD"

'Set the registry key to Stop Highlighting new programs in the Start Menu

objWshShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Start_NotifyNewApps", "0","REG_DWORD"

'Set the registry key to remove Default Programs from the Start Menu

objWshShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Start_ShowSetProgramAccessAndDefaults", "0","REG_DWORD"

'Set the registry key to Show Administrator Tools menu

objWshShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Start_AdminToolsRoot", "2","REG_DWORD"

objWshShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\StartMenuAdminTools", "1","REG_DWORD"

objWshShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Start_AdminToolsTemp", "2","REG_DWORD"

 

'=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

'Control Panel

'=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

'Set the Control Panel View to Small Icons

objWshShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\ForceClassicControlPanel", "1","REG_DWORD"

 

'=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

'Desktop Icons

'=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

'Show Computer on All User's Desktop

objWshShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel\{20D04FE0-3AEA-1069-A2D8-08002B30309D}", "0","REG_DWORD"

'Show User Folders on All User's Desktop

objWshShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel\{59031a47-3f72-44a7-89c5-5595fe6b30ee}", "0","REG_DWORD"

'Show Network on All User's Desktop

objWshShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel\{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}", "0","REG_DWORD"

  • 1 year later...

Join the conversation

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

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.