Mark Minasi's Reader Forum
Mark Minasi's Reader Forum
Home | Profile | Register | Active Topics | Active Polls | Members | Search | FAQ | Minasi Forum RSS Feed
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 HALP! Questions on Windows and Windows Server
 Scripting
 Perform a one-time time synchronization
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

sixdoubleo
Major Contributor

USA
859 Posts
Status: offline

Posted - 05/01/2012 :  2:19:38 PM  Show Profile  Click to see sixdoubleo's MSN Messenger address  Send sixdoubleo a Yahoo! Message  Reply with Quote
When our IT staff freshly image a PC, we're seeing cases where the time is hours or days off, depending on the hardware. This is causing problems with updates and/or joining the domain.

Once the PC's are added to AD, we're good...as they get time from the DC's. But I'm concerned with getting the time correct prior to that. PC's immediately start pulling updates from our WSUS servers the second they come on the network and as a matter of procedure we like them to be fully updated prior to joining AD. When the time is off by hours, it causes problems with updates. And like I said, large time differences can prevent you from adding the computer to AD.

Anyway, I was thinking of adding a small batch file to the RunOnce of our system image, just so on the first bootup, they perform a time sync to our NTP server. But I don't want these PC's "remembering" this information so that once they get added to AD, they are starting with a default time configuration and behave correctly as domain members and get time from the DC's.

What's the best way to go about this?

I was thinking something like...

w32tm /manualpeerlist:ntp.mydomain.com /syncfromflags:MANUAL /update
w32tm /resync
w32tm /unregister
w32tm /register

Anybody have any better ideas? Like I said...on that first bootup I just want to make sure the PC gets its time in sync.

JeffWouters
Here To Stay

Netherlands
147 Posts
Status: offline

Posted - 05/01/2012 :  3:55:35 PM  Show Profile  Visit JeffWouters's Homepage  Click to see JeffWouters's MSN Messenger address  Look at the Skype address for JeffWouters  Reply with Quote
You could use PowerShell? http://poshcode.org/1121

Greetsz,
Jeff.
Go to Top of Page

sixdoubleo
Major Contributor

USA
859 Posts
Status: offline

Posted - 05/01/2012 :  3:59:19 PM  Show Profile  Click to see sixdoubleo's MSN Messenger address  Send sixdoubleo a Yahoo! Message  Reply with Quote
Cool, thanks for that. Since this is a fresh image, I'll need to make sure I deal with the Powershell execution policy since we set that through a GPO in AD. Maybe just specify it on the command line I suppose. I'll try that..thanks again!
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Mark Minasi's Reader Forum © 2002-2011 Mark Minasi Go To Top Of Page
This page was generated in 0.11 seconds. Snitz Forums 2000