Page 1 of 1 1
Topic Options
#199134 - 2010-07-28 05:15 PM Windows 7 Time Sync errors
Trinity1546 Offline
Just in Town

Registered: 2010-07-28
Posts: 1
Loc: Texas
This may have been already addressed and I apologize if it has, but this has been driving me crazy and can't figure it out. I am getting Printer add errors as well as time sync errors when logging into Windows 7 Professional (32 bit). Thanks in advance for any help that you can give me.

Here is our script....

Time portion:
 Code:
?"Synching the time with @LSERVER..."?
SETTIME "@LSERVER"
If @ERROR <> 0
 ? "Searching the local domain for a time-server..."?
 ?
 SETTIME "*"
 If @ERROR <> 0
  ? "Time Synch Error"?
  ?
  sleep 1
  Else
  ? "Synch Successful"
  ?
 EndIf
EndIf
Printer portion:
 Code:
IF InGroup("Information Systems") = 1
  use z: /Delete
  use z: "\\companyname.com\dfs\UserFiles\Information Systems\" + @USERID
  use x: "\\companyname.com\dfs\UserFiles\Information Systems\ISDept"
  use y: \\companyname.com\dfs\zips
  IF AddPrinterConnection("\\" + $PServer1 + "\" + $MISPrinter1) = 0
   ?"Added printer $MISPrinter1"?
   Else
   ? "Error adding $MISPrinter1"?
   sleep 1
  EndIf
  IF AddPrinterConnection("\\" + $PServer1 + "\" + $MISPrinter2) = 0
   ?"Added printer $MISPrinter2"?
  Else
   ? "Error adding $MISPrinter2"?
   sleep 1
  EndIf
  IF AddPrinterConnection("\\" + $PServer1 + "\" + $MISPrinter3) = 0
   ?"Added printer $MISPrinter3"?
  Else
   ? "Error adding $MISPrinter3"?
   sleep 1
  EndIf


Edited by Glenn Barnas (2010-07-28 07:50 PM)
Edit Reason: added code tags

Top
#199139 - 2010-07-28 07:49 PM Re: Windows 7 Time Sync errors [Re: Trinity1546]
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4402
Loc: New Jersey
Welcome to KORG!!

DO NOT use scripts to sync time. Time - since NT/XP - has been handled through Windows AD. For workstations, the W32time process provides adequate time sync with no administrative effort.

For Windows 2000/2003 servers running mission-critical services - NOT AD SERVERS!! - a third-party NTP service should be used to provide higher time accuracy.

The best solution is to use NTP on a server or router and obtain time from an external source. Have your PDCe obtain time from that device - this is the only configuration needed. All other DCs sync automatically with the PDCe, and all workstations sync automatically with the DCs. Everything is happy. Mission-critical servers use a 3rd party service to sync with the primary time server.

Windows 2008 servers do provide higher accuracy sync. This higher accuracy is usually only needed for servers involved in SQL processing - the database servers and their clients. A fully ported version of NTP for windows is available from http://www.meinberg.de/english/sw/ntp.htm.

As far as your printer errors go, try adding a @SERROR macro to your error message so you can see what error occurred. Something like
 Code:
@SERROR ' occurred when adding printer' @CRLF


Glenn
_________________________
Actually I am a Rocket Scientist! \:D

Top
Page 1 of 1 1


Moderator:  Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 1045 anonymous users online.
Newest Members
batdk82, StuTheCoder, M_Moore, BeeEm, min_seow
17885 Registered Users

Generated in 0.127 seconds in which 0.102 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org