+ Post New Thread
Results 1 to 5 of 5
Windows Thread, Command LIne in Technical; Does anyone know of a way to insert automated replys into a batch file for instance: net time \<servername> /set ...
  1. #1
    wesleyw's Avatar
    Join Date
    Dec 2005
    Location
    Kingswinford
    Posts
    2,205
    Thank Post
    223
    Thanked 50 Times in 44 Posts
    Blog Entries
    1
    Rep Power
    30

    Command LIne

    Does anyone know of a way to insert automated replys into a batch file for instance:

    net time \\<servername> /set


    this syncs the time on the local machine to the servers but asks you for a Y/N answer is there a way of giving it that answer within a batch file?


    Wes

  2. #2

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,802
    Thank Post
    110
    Thanked 583 Times in 504 Posts
    Blog Entries
    1
    Rep Power
    224

    Re: Command LIne

    You don't need to do this, Windows clients will automagically sycronise their time settings with domain controllers.

    If you really want to be sure (or you need to use an external time source) you can set the NTP client options in group policies.

  3. #3

    plexer's Avatar
    Join Date
    Dec 2005
    Location
    Norfolk
    Posts
    13,272
    Thank Post
    614
    Thanked 1,567 Times in 1,407 Posts
    Rep Power
    412

    Re: Command LIne

    But if you must you use:

    net time \\computername /set /y

    Ben

  4. #4

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,802
    Thank Post
    110
    Thanked 583 Times in 504 Posts
    Blog Entries
    1
    Rep Power
    224

    Re: Command LIne

    Remember to also allow 'Domain Users' the 'Alter Time and Date Settings' user role. Bear in mind though this also allows them to manually screw up the time. Resulting in kerberos (logins + group policies) and windows update breaking.

  5. #5
    wesleyw's Avatar
    Join Date
    Dec 2005
    Location
    Kingswinford
    Posts
    2,205
    Thank Post
    223
    Thanked 50 Times in 44 Posts
    Blog Entries
    1
    Rep Power
    30

    Re: Command LIne

    Cool thanks! The teachers have already got this and its for one of their laptops!

    Wes

SHARE:
+ Post New Thread

Similar Threads

  1. Command Line ISO Creator
    By russdev in forum Windows
    Replies: 1
    Last Post: 27th September 2007, 08:04 PM
  2. urgent: Sims.net command line reporter (CLR)
    By russdev in forum MIS Systems
    Replies: 2
    Last Post: 20th September 2007, 02:00 PM
  3. Command line enviroment for pupils.
    By Teth in forum How do you do....it?
    Replies: 16
    Last Post: 16th January 2007, 01:17 PM
  4. Command line installs? heeellllppp
    By contink in forum How do you do....it?
    Replies: 2
    Last Post: 2nd October 2006, 04:27 PM
  5. Command line tool for share permissions
    By NetworkGeezer in forum Windows
    Replies: 8
    Last Post: 19th June 2006, 06:32 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •