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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
Acronis True Image 2019 just released!

Create a reliable backup. Make sure you always have dependable copies of your data so you can restore your entire system or individual files.

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
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows OS

From novice to tech pro — start learning today.