Net Time uses the old NetRemoteTOD API, so you're talking LANMAN APIs &
NetBIOS name resolution stuff here, I have some old notes[1] on
NetRemoteTOD but much of it seems to have disappeared from MSDN.

[1] For computers not running the time service, when they issue a NET
TIME command without any parameters the clients issue a NetServerEnum to
enumerate the servers from the browse list (yuk) with the TS (timesource
) flag. E.G.- When you run NET TIME without the /domain option, the
workstation will iterate through the list of time sources in the browse
list, and contact the first one encountered.

Since NBNR is  dependent on the protocols installed, client node-type
etc I'd just be guessing how you are resolving with out a sniffer
trace[2]. 

I'd have to ask again why you are using net time in a 2K3 environment
unless it's just an intellectual exercise, if that's the case see [2]
:-]

________________________________

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Wyatt, David
Sent: Thursday, May 25, 2006 3:11 AM
To: [email protected]
Subject: RE: [ActiveDir] NET TIME command


OK, so are we saying that WINS (yes, we have a WINS infrastructure) is
returning the SPOKEDC (maybe alphabetically too???)
 

        -----Original Message-----
        From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Free, Bob
        Sent: 24 May 2006 18:17
        To: [email protected]
        Subject: RE: [ActiveDir] NET TIME command
        
        
        Net Time is using the <gag> Browser Service to determine the
timesource in the scenarios you outline so all the foibles of the
Browser mechanisms come into play.
         
        You would be much better served to use w32tm to troubleshoot
time issues in an AD environment.
         
        IIRC, what you are seeing in the first example is the first
system to answer that is advertising the TS flag and the second is your
DMB (Domain Master Browser) 
         
        That's based on old recollection since I stoped trying to deal
with browser issues a long time ago :-)
         
        If you checked them with browstat, I bet the browser flags for
them look like this-
         
        \\SpokeDC <file://\\SpokeDC>       NT   05.02
(W,S,BDC,TS,NT,BBR,DFS)
        \\HubDC <file://\\HubDC>         NT   05.02
(W,S,PDC,TS,NT,MBR,DFS)
         
         

________________________________

        From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Wyatt, David
        Sent: Wednesday, May 24, 2006 9:20 AM
        To: [email protected]
        Subject: [ActiveDir] NET TIME command
        
        
        Seem to have an odd issue when using the net time command...
         
        Scenario:

        *       Windows 2003 FFL, single domain, single forest 
        *       Hub/spoke site topology, London hub, other offices
spokes

        I have logged onto a Windows 2000 Pro desktop (that is joined to
domain) in the hub site.  Open command prompt and type net time.  After
a pause I get the following:
         
        Current time at \\SPOKE DC <file://\\SPOKE DC>  is 5/24/2006
5:11 PM
        The command completed successfully.
         
        If I run the command net time /domain:DOMAINNAME I get:
         
                Current time at \\HUB DC <file://\\HUB DC>  is 5/24/2006
5:12 PM
        The command completed successfully.
         
         
        Why is the first command getting a reply from a spoke DC and not
the hub DC?  Is this expected?
         
         
        Regards
        -David
                         
         
        
        
        
************************************************************************
****
        This message contains confidential information and is intended
only 
        for the individual or entity named. If you are not the named
addressee
        you should not disseminate, distribute or copy this e-mail. 
        Please notify the sender immediately by e-mail if you have
received 
        this e-mail by mistake and delete this e-mail from your system.
        E-mail transmission cannot be guaranteed to be secure or
error-free
        as information could be intercepted, corrupted, lost, destroyed,
arrive
        late or incomplete, or contain viruses. The sender therefore
does not
        accept liability for any errors or omissions in the contents of
this 
        message which arise as a result of e-mail transmission. 
        If verification is required please request a hard-copy version.
        This message is provided for informational purposes and should
not
        be construed as an invitation or offer to buy or sell any
securities or
        related financial instruments.
        GAM operates in many jurisdictions and is 
        regulated or licensed in those jurisdictions as required.
        
************************************************************************
****
        

List info   : http://www.activedir.org/List.aspx
List FAQ    : http://www.activedir.org/ListFAQ.aspx
List archive: http://www.activedir.org/ml/threads.aspx

Reply via email to