• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 818
  • Last Modified:

Load a specific visual style using gpp on first logon

Hello Experts,

I have a new Windows 2008 domain and I have written all GPO's in 2008.  I am trying to set the theme of the Windows XP machines to "Metallic" instead of "NormalColor" on the first logon.  I have created a GPO that uses a GPP Registry editor on the users node.

GPO > User Configureation > Preferences > Windows Settings > Registry

I added a registry item that changes the value:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ThemeManager
REG_SZ "ColorName" = "Metallic"

None of the common options are selected.

The registry setting does not work on the first logon, but when the user logs out and logs back in, the setting is then applied.  Is there a way to make sure that it is applied on the first logon without creating a new default user profile?  I really do not want to use a defualt profile and want to stick with GPO's.

Thanks!
0
completefear
Asked:
completefear
  • 3
  • 2
1 Solution
 
Chris DentPowerShell DeveloperCommented:

Hey,

Give this command a try if you can:

RUNDLL32.EXE user32.dll,UpdatePerUserSystemParameters

Because that should force a refresh. If that works for you, running it in a batch file may achieve what you need.

Chris
0
 
completefearAuthor Commented:
I ran the command, but it did not work.  When I checked the registry, my setting was not applied.  Or it was and the system overwrote it when it did the new user setup process.
0
 
Chris DentPowerShell DeveloperCommented:

If you're creating a new user profile the template is HKEY_USERS\.Default, although I'd expect your policy to apply after the initial registry set has been copied and therefore still show the change in the registry.

The command above it the one I use to fix, or refresh, the wallpaper should it be changed in the registry during logon. The theory being the application of the theme is done in the same way... maybe...

Chris
0
Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

 
completefearAuthor Commented:
I have actually changed the .Default registry setttings and it is displaying correctly at the logon screen.  But it does not carry over into new users.
0
 
VertigoRayCommented:
Two possible solutions come to mind (I suggest trying them one at a time before trying them both so you can let us know how it went):

1)
a)
Try configuring the policy in Computer Config instead of User Config.  Computer Config should apply to the System and Default Users.  This means it should carry over to new users.  
b)
Additionally configure the machine policy for the theme instead of the current user policy:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\ThemeManager

2)
Enable the "Always wait for the network at computer startup and logon" policy:
GPO > Computer Config > Administrative Templates > System > Logon > Policy

~Ray
0
 
completefearAuthor Commented:
I found the solution, not the solution that I wanted, but here it is.
 
You cannot load a visual style on the first logon unless you use a default profile.  No matter what registry entries I used I was not able to change the default profile.  So, In my image I made sure that I copied over the default profile I wanted using robocopy.
0

Featured Post

Fill in the form and get your FREE NFR key NOW!

Veeam is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now