Results 1 to 3 of 3

Thread: error message: cant login This computer date/time is not synchornize with the date/time of network

  1. #1
    Join Date
    Nov 2011
    Posts
    6

    error message: cant login This computer date/time is not synchornize with the date/time of network

    salam! i m knew in networking i want to know how to synchronize my server with the workstations can anybody help .because when any user login on domain an error massege appear " cant login This computer date/time is not synchornize with the date/time of network). but my server and workstation have same date and time setting.

  2. #2
    Join Date
    Nov 2010
    Posts
    445

    re: error message: cant login This computer date/time is not synchornize with the date/time of network

    Make sure you make use of the NetRemoteTOD API function. I have given the code for you just make sure that you copy paste it. Enter your server name in the place of the :servername bracket given there. Do try it and run that let me know if that was of use for you or not.

    Code:
    DECLARE INTEGER RtlMoveMemory IN win32api ;
       STRING @outbuffer, ;
       INTEGER inbuffer, ;
       INTEGER bytes2copy
    tdbuffout=REPLICATE(CHR(0), 48)
    tdbuffin = 0
    
    server_name = "yourservername"
    try_server_name = STRCONV(server_name, 5)
    rc = NetRemoteTOD(@try_server_name, @tdbuffin)
    IF rc = 0
       * copy the contents pointed to by the address in tdbuffin to
       * tdbuffout
       =RtlMoveMemory(@tdbuffout, tdbuffin, 48)
    ELSE
       * call failed. Therefore, the target is possibly a Win2000 box;
       * Retry the function call, prepending "\\" to the server_name
       try_server_name = STRCONV("\\" + server_name, 5)
       rc = NetRemoteTOD(@try_server_name, @tdbuffin)
       IF rc = 0
    =RtlMoveMemory(@tdbuffout, tdbuffin, 48)
       ELSE
          ? "NetRemoteTOD() call failed. Return code is: ", rc
          RETURN
       ENDIF
    ENDIF
    tod_month = str2long(SUBSTR(tdbuffout, 37, 4))
    tod_day = str2long(SUBSTR(tdbuffout, 33, 4))
    tod_year = str2long(SUBSTR(tdbuffout, 41, 4))
    tod_hours = str2long(SUBSTR(tdbuffout, 9, 4))
    tod_mins = str2long(SUBSTR(tdbuffout, 13, 4))
    tod_secs = str2long(SUBSTR(tdbuffout, 17, 4))
    tod_timezone = str2long(SUBSTR(tdbuffout, 25, 4)) * 60
    
    serverdatetime = DATETIME(tod_year, tod_month, tod_day, ;
       tod_hours, tod_mins, tod_secs)
    ? "UTC time of server is: ", serverdatetime
    ? "Server's local time is: ", serverdatetime - tod_timezone
    PARAMETERS m.longstr
    
    PRIVATE i, m.retval
    
    m.retval = 0
    FOR i = 0 TO 24 STEP 8
       m.retval = m.retval + (ASC(m.longstr) * (2^i))
       m.longstr = RIGHT(m.longstr, LEN(m.longstr) - 1)
    NEXT
    RETURN m.retval

  3. #3
    Join Date
    Nov 2011
    Posts
    6

    re: error message: cant login This computer date/time is not synchornize with the date/time of network

    thanks sweet dear let me try . i have one more question how i can check workstation cmos(cell) battery in the network has expires or died from AD/DC or from administration end.please reply i will grate ful to u. thanks inadvance

Similar Threads

  1. Replies: 6
    Last Post: 24-03-2012, 06:33 PM
  2. Replies: 8
    Last Post: 19-10-2011, 05:08 AM
  3. Date & time Conversion PST Pacific Standard Time to GMT
    By Austinage in forum Software Development
    Replies: 2
    Last Post: 30-07-2009, 05:38 PM
  4. MSN messenger last login time and date
    By Jason Bourne in forum Windows Software
    Replies: 1
    Last Post: 19-03-2009, 06:19 PM
  5. Dell XPS M1210 BIOS Error 163 - Time and Date not set
    By molfer in forum Operating Systems
    Replies: 5
    Last Post: 25-02-2009, 01:39 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,627,108.29534 seconds with 17 queries