Link to home
Start Free TrialLog in
Avatar of tonyjoewalker
tonyjoewalker

asked on

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!
Avatar of Member_2_6492660_1
Member_2_6492660_1
Flag of United States of America image

Use Group Policy

the fastest and preferred method

I created a WMI and works great

Need more info let me know

Tom
Avatar of tonyjoewalker

ASKER

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!
ASKER CERTIFIED SOLUTION
Avatar of albatros99
albatros99

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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
tony

Which script?

They will work on 2003 2008 etc
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
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.