Results 1 to 7 of 7

Thread: Net time on login script

  1. #1
    Marc S Guest

    Net time on login script

    Prior consultants put the "net time" command into a login script.

    net time \\servername / set /y (the server name is the correct one)

    I get an eror when the script runs that the option is unavailable. The
    Syntax looks wrong in the script.

    Before I spend any time to fix this, does this need to be in the Login Script?

  2. #2
    Ace Fekay [MVP] Guest

    Re: Net time on login script

    In news:87E10FD9-0701-469C-AAAF-0B733E944B8C@microsoft.com,
    Marc S <MarcS@discussions.microsoft.com> typed:
    > Prior consultants put the "net time" command into a login script.
    >
    > net time \\servername / set /y (the server name is the correct one)
    >
    > I get an eror when the script runs that the option is unavailable.
    > The Syntax looks wrong in the script.
    >
    > Before I spend any time to fix this, does this need to be in the
    > Login Script?


    Nope. Not needed. All domain members will get their time sync from the DC
    that holds the PDC Emulator Role by default. Nothing else to configure on
    the client or other servers. However you would want to do a one shot time
    config on the DC that holds the PDC Emulator role. This was designed this
    way to insure time is properly set across the domain because AD uses
    Kerberos for authentication, which uses a time stamp in the authentication
    stream as a 'salt' to insure the authentication traffic is not replayed.
    Kerberos only allows a 5 minute skew otherwise authentication will fail,
    people can't logon, Exchange fails... the list goes on.

    Assuming you are running Windows 2003 (different for 2000):

    net stop w32time
    net time /setsntp:192.5.41.41
    net start w32time

    Make sure UDP 123 is allowed access in your firewall from that IP to the DC
    holding the PDC Emulator role. That IP is one of the Navy time servers.

    --
    Regards,
    Ace

    This posting is provided "AS-IS" with no warranties or guarantees and
    confers no rights.

    Ace Fekay, MCSE 2003 & 2000, MCSA 2003 & 2000, MCSE+I, MCT,
    MVP Microsoft MVP - Directory Services
    Microsoft Certified Trainer

    Infinite Diversities in Infinite Combinations



  3. #3
    Marc S Guest

    Re: Net time on login script



    "Ace Fekay [MVP]" wrote:

    > In news:87E10FD9-0701-469C-AAAF-0B733E944B8C@microsoft.com,
    > Marc S <MarcS@discussions.microsoft.com> typed:
    > > Prior consultants put the "net time" command into a login script.
    > >
    > > net time \\servername / set /y (the server name is the correct one)
    > > I get an eror when the script runs that the option is unavailable.
    > > The Syntax looks wrong in the script.
    > >
    > > Before I spend any time to fix this, does this need to be in the
    > > Login Script?

    >
    > Nope. Not needed. All domain members will get their time sync from the DC
    > that holds the PDC Emulator Role by default. Nothing else to configure on
    > the client or other servers. However you would want to do a one shot time
    > config on the DC that holds the PDC Emulator role. This was designed this
    > way to insure time is properly set across the domain because AD uses
    > Kerberos for authentication, which uses a time stamp in the authentication
    > stream as a 'salt' to insure the authentication traffic is not replayed.
    > Kerberos only allows a 5 minute skew otherwise authentication will fail,
    > people can't logon, Exchange fails... the list goes on.
    >
    > Assuming you are running Windows 2003 (different for 2000):
    >
    > net stop w32time
    > net time /setsntp:192.5.41.41
    > net start w32time
    >
    > Make sure UDP 123 is allowed access in your firewall from that IP to the DC
    > holding the PDC Emulator role. That IP is one of the Navy time servers.
    >
    > --
    > Regards,
    > Ace
    >
    > This posting is provided "AS-IS" with no warranties or guarantees and
    > confers no rights.
    >
    > Ace Fekay, MCSE 2003 & 2000, MCSA 2003 & 2000, MCSE+I, MCT,
    > MVP Microsoft MVP - Directory Services
    > Microsoft Certified Trainer
    >
    > Infinite Diversities in Infinite Combinations



    How can I see if the "one time shot" was already setup on a Domain
    Controller, before I run the net time you suggested?

    If I have three Domain Controllers, will this be done on all three. Or only
    one is the main Time Server?




  4. #4
    net_admin Guest

    Re: Net time on login script

    http://support.microsoft.com/kb/816042


    --
    NetAdmin <São Paulo, BR>



    "Marc S" wrote:

    >
    >
    > "Ace Fekay [MVP]" wrote:
    >
    > > In news:87E10FD9-0701-469C-AAAF-0B733E944B8C@microsoft.com,
    > > Marc S <MarcS@discussions.microsoft.com> typed:
    > > > Prior consultants put the "net time" command into a login script.
    > > >
    > > > net time \\servername / set /y (the server name is the correct one)
    > > > I get an eror when the script runs that the option is unavailable.
    > > > The Syntax looks wrong in the script.
    > > >
    > > > Before I spend any time to fix this, does this need to be in the
    > > > Login Script?

    > >
    > > Nope. Not needed. All domain members will get their time sync from the DC
    > > that holds the PDC Emulator Role by default. Nothing else to configure on
    > > the client or other servers. However you would want to do a one shot time
    > > config on the DC that holds the PDC Emulator role. This was designed this
    > > way to insure time is properly set across the domain because AD uses
    > > Kerberos for authentication, which uses a time stamp in the authentication
    > > stream as a 'salt' to insure the authentication traffic is not replayed.
    > > Kerberos only allows a 5 minute skew otherwise authentication will fail,
    > > people can't logon, Exchange fails... the list goes on.
    > >
    > > Assuming you are running Windows 2003 (different for 2000):
    > >
    > > net stop w32time
    > > net time /setsntp:192.5.41.41
    > > net start w32time
    > >
    > > Make sure UDP 123 is allowed access in your firewall from that IP to the DC
    > > holding the PDC Emulator role. That IP is one of the Navy time servers.
    > >
    > > --
    > > Regards,
    > > Ace
    > >
    > > This posting is provided "AS-IS" with no warranties or guarantees and
    > > confers no rights.
    > >
    > > Ace Fekay, MCSE 2003 & 2000, MCSA 2003 & 2000, MCSE+I, MCT,
    > > MVP Microsoft MVP - Directory Services
    > > Microsoft Certified Trainer
    > >
    > > Infinite Diversities in Infinite Combinations

    >
    >
    > How can I see if the "one time shot" was already setup on a Domain
    > Controller, before I run the net time you suggested?
    >
    > If I have three Domain Controllers, will this be done on all three. Or only
    > one is the main Time Server?
    >
    >
    >


  5. #5
    Ace Fekay [MVP] Guest

    Re: Net time on login script

    In news:4DDBA95C-EF0F-4EE8-B854-6F89D57711B1@microsoft.com,
    Marc S <MarcS@discussions.microsoft.com> typed:

    >
    > How can I see if the "one time shot" was already setup on a Domain
    > Controller, before I run the net time you suggested?
    >
    > If I have three Domain Controllers, will this be done on all three.
    > Or only one is the main Time Server?


    You can do it over and over again and again. It won't hurt. It just sets it
    to whatever you set it to. Or look in the reg like that article shows.

    Ace



  6. #6
    Marc S Guest

    Re: Net time on login script



    "Ace Fekay [MVP]" wrote:

    > In news:4DDBA95C-EF0F-4EE8-B854-6F89D57711B1@microsoft.com,
    > Marc S <MarcS@discussions.microsoft.com> typed:
    >
    > >
    > > How can I see if the "one time shot" was already setup on a Domain
    > > Controller, before I run the net time you suggested?
    > >
    > > If I have three Domain Controllers, will this be done on all three.
    > > Or only one is the main Time Server?

    >
    > You can do it over and over again and again. It won't hurt. It just sets it
    > to whatever you set it to. Or look in the reg like that article shows.
    >
    > Ace
    >


    Perfect. Thanks so much.

  7. #7
    Ace Fekay [MVP] Guest

    Re: Net time on login script

    In news:F7D732D9-FA92-4CA0-AF95-8877757246A9@microsoft.com,
    Marc S <MarcS@discussions.microsoft.com> typed:
    > Perfect. Thanks so much.


    My pleasure.



Similar Threads

  1. Calling login Script
    By Chicago2010 in forum Software Development
    Replies: 1
    Last Post: 13-08-2010, 12:07 PM
  2. WAP login script in php
    By Steinbach in forum Software Development
    Replies: 3
    Last Post: 14-04-2009, 09:22 AM
  3. Replies: 1
    Last Post: 03-08-2008, 05:23 PM
  4. to add username & password into my login.cmd - login script
    By sphilip in forum Windows Server Help
    Replies: 4
    Last Post: 05-03-2008, 11:04 PM
  5. Startup Script or Login Script ??
    By WANNABE in forum Active Directory
    Replies: 5
    Last Post: 22-12-2006, 07:44 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,714,051,170.79841 seconds with 16 queries