MSFN Forum: Net Time Corrupts DHCP - MSFN Forum

Jump to content


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Net Time Corrupts DHCP Rate Topic: -----

#1 User is offline   gadget 

  • Member
  • PipPip
  • Group: Members
  • Posts: 197
  • Joined: 02-January 04

Posted 26 June 2012 - 07:31 AM

Hi,

Just noticed a problem here which possible has been happening since we first introduced WinPE 2.0. WinPE 1.6 and below does not have his error, I use WinPE all flavours here to deploy images onto systems.

One task is to set the system clock using net time /domain:****** /set /yes but this corrupts the Lease Obtained time to a point in the past Attached File  dhcperr.JPG (29.76K)
Number of downloads: 15 << see. Due to the qty of systems attaching, the lease time is eight hours. Under normal operation, the systems are complete and removed before the lease expires but some systems will remain connected and when the lease expires, it cannot obtain a new address and will drop off the network causing configuration issues. doing ipconfig /release and the /renew is hit and miss if it works. No errors on the dhcp server, and no requests sent from the client.

w32tm is not supported in pe nor is _local_time part of its wmi subset,,,

Anyone come across this at all...

I use a windows 2003 wds with legacy.

Tested:

net time \\server_name /set / yes
Windows 2000 domain
Windows 2008 domain
Logging on with domain credentials prior to running net time
pausing script after network initialisation then running net time
pausing all over the script after net time, including ip.../ /release /renew at varying pause times, sometimes the lease renews, most times it will not...
and on and on and on


#2 User is offline   Tripredacus 

  • K-Mart-ian Legend
  • Group: Super Moderator
  • Posts: 8,665
  • Joined: 28-April 06
  • OS:Server 2012
  • Country: Country Flag

Posted 26 June 2012 - 07:52 AM

View Postgadget, on 26 June 2012 - 07:31 AM, said:

Just noticed a problem here which possible has been happening since we first introduced WinPE 2.0. WinPE 1.6 and below does not have his error


There is a reason for this! Net /time is deprecated, which would explain why the old version still works. Looks like you need to the use Windows time service now.

But that is a great error! :wub:

#3 User is offline   gadget 

  • Member
  • PipPip
  • Group: Members
  • Posts: 197
  • Joined: 02-January 04

Posted 26 June 2012 - 08:03 AM

View PostTripredacus, on 26 June 2012 - 07:52 AM, said:

View Postgadget, on 26 June 2012 - 07:31 AM, said:

Just noticed a problem here which possible has been happening since we first introduced WinPE 2.0. WinPE 1.6 and below does not have his error


There is a reason for this! Net /time is deprecated, which would explain why the old version still works. Looks like you need to the use Windows time service now.

But that is a great error! :wub:



It is a fab error, unfortunatly w32tm is not available (or am I missing something) in WinPE 2 and above..

#4 User is offline   uid0 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 348
  • Joined: 12-June 06

Posted 26 June 2012 - 08:18 AM

In BartPE we used to use nistime or neutron or synctime

#5 User is offline   gadget 

  • Member
  • PipPip
  • Group: Members
  • Posts: 197
  • Joined: 02-January 04

Posted 26 June 2012 - 08:23 AM

View Postuid0, on 26 June 2012 - 08:18 AM, said:

In BartPE we used to use nistime or neutron or synctime



Thanks, secure standalone network - no internet :( might spoof an internal timeserver though... one of the things i am looking at..

This post has been edited by gadget: 26 June 2012 - 08:24 AM


#6 User is offline   submix8c 

  • Inconceivable!
  • Group: Patrons
  • Posts: 3,241
  • Joined: 14-September 05
  • OS:none specified
  • Country: Country Flag

Posted 26 June 2012 - 01:26 PM

View Postgadget, on 26 June 2012 - 08:03 AM, said:

It is a fab error, unfortunatly w32tm is not available (or am I missing something) in WinPE 2 and above..
BUT... it's in the OS "WINDOWS\SYSTEM32" folder (W32TM.EXE). Put it and all dependencies in your PE Build. Haven't tried it (this), but I have inserted EXPLORER in it before (and dependencies). Use Dependency Walker to find all dependent models. Put all of them (if they are not there) in SYSTEM32 of the PE. Should work...

#7 User is offline   gadget 

  • Member
  • PipPip
  • Group: Members
  • Posts: 197
  • Joined: 02-January 04

Posted 27 June 2012 - 06:40 AM

Fixed:

Removed net time and no need for w32time, just called an api NetRemoteTOD and returns the time correctly for a remote server...

Thanks to http://www.codeguru....e-NT-Server.htm

and thanks for all the suggestions here....

#8 User is offline   gadget 

  • Member
  • PipPip
  • Group: Members
  • Posts: 197
  • Joined: 02-January 04

Posted 05 July 2012 - 04:59 AM

Wasn't fixed, have worked someting out though:

On your freshly booted WinPE (I'm testing 3.1) do an ipconfig /all to check the lease obtained time then run time xx:xx where xx:xx hours and minutes is less than the lease obtained time... Do ipconfig /all and see the lease obtaied time.....

????????????????????

Tested on a win 7 box with an 8 hour lease and it done exactly the same thing....... Problem with this 1876 date is that the system cannot renew it's ip address when it expires.......

This post has been edited by gadget: 05 July 2012 - 05:56 AM


Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy