Change Time Zone on 240 Servers

Hi

I recently migrated 240 servers from the west coast to the east coast.   The domain stayed the same, but we did update dns to the local domain controllers.  I was hoping the servers would pick up their Time from the local DC's, but no luck.

The servers are a mix of 2003, 2003 R2, and 2008 R2.  I haven't been able to find a solution to change the Time Zone on all these servers.  I've tried vbscript and psexec but it doesn't seem to work.  This appears to work when run locally, but psexec just hangs:   RunDLL32.exe shell32.dll,Control_RunDLL timedate.cpl,,/Z "(GMT-05:00) Eastern Time (US & Canada)".  What I think is happening is that the control panel applet is opening but not committing the change.

I found a couple of posts on EE, but nothing definitive.

Anybody know the best way to change the Time Zone on these servers?

Thanks!
tonyjoewalkerAsked:
Who is Participating?
 
albatros99Commented:
If you want to make the change with group policy you can do so with group policy preferences. Create a new GPO and link it to the container with the computer objects. In the preference section of the policy create a new registry item.

Look at these registry keys and values on a reference computer:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones.
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation

...then use these values in your new GPO preference items.
0
 
Thomas GrassiSystems AdministratorCommented:
Use Group Policy

the fastest and preferred method

I created a WMI and works great

Need more info let me know

Tom
0
Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 
tonyjoewalkerAuthor Commented:
Could I please get more info on the Group Policy Option?  I found a couple of posts about exporting reg keys and using GP to import them.  Not thrilled with doing that because the keys are different between 2003 & 2008 (GMT vs UTC)

tzutil doesn't work on 2003 and the goal is to not log into every server.

Thanks!
0
 
Thomas GrassiSystems AdministratorCommented:
Since tzutil does not work on 2003

Here is something I found that will help you

I found no entry in Group Policy for time Zone still researching that

But here is a powershell script that will work across your platforms

Includes a download of sample scripts

http://blogs.technet.com/b/deploymentguys/archive/2009/06/07/setting-the-time-zone-using-windows-powershell.aspx

Hope this helps

You can always add this to your group policy.

Keep in mind you will need you need to create a WMI filter to exclude the NTP server from this policy

Need help with that let us know
0
 
tonyjoewalkerAuthor Commented:
Hi

I finally had time to look at the PS scripts.  I wasn't able to find where I can input a list of server names or do you use psexec to execute this?  Will it work on Windows 2003?

Tony
0
 
Thomas GrassiSystems AdministratorCommented:
tony

Which script?

They will work on 2003 2008 etc
0
 
tonyjoewalkerAuthor Commented:
Hi

Set-timeZone.ps1 and it says in the body that it needs TimeZoneCSharp.ps1 in the same folder.

I downloaded the PS pack from your link above (http://blogs.technet.com/b/deploymentguys/archive/2009/06/07/setting-the-time-zone-using-windows-powershell.aspx) .

Set-timeZone.ps1 looked like the one I want to use...

Thanks!

Tony
0
 
Thomas GrassiSystems AdministratorCommented:
Tony

this script will only set the time zone in each computer that this runs on.

Little modification is required.

All the Time settings then can be set using the GPO also create WMI to exclude the Time Server from getting the setting you create in the GPO you don't want the Time Server to have same settings as the other computers since they will be pointing to the time server.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.