Windows Client TechCenter > Windows 7 Forums > Windows 7 Miscellaneous > How to set time in login scripts for Windows 7 clients
Ask a questionAsk a question
 

AnswerHow to set time in login scripts for Windows 7 clients

  • Tuesday, November 03, 2009 3:59 PMforbesn Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    net time command is what we use to synch our clients to one server (in our login script).  I cannot get this command to work on Windows 7.  I'm in the local administrators group on the Windows 7 client.  Even so I get the following error when I try to use this command:
    "System error 1314 has occurred"
    "A required privilege is not held by the client."

    I have double checked the local policy on the computer for setting time and verified that "administrators" is assigned the policy.  I also added domain users to the policy.  I do believe our network admin has not gotten the Domain security policies to run on Windows 7 yet so that may have to do with the problem. 

    I've found this link as well: http://social.answers.microsoft.com/Forums/en-US/GettingReadyforWindows7/thread/ff183ca6-5135-4b63-80c4-0eacb1f33fc0
    but I'd prefer to not have to set a registry key for each of our Windows 7 clients if there is another way.  The login script has worked well for us until now.


    Nancy Forbes

Answers

  • Wednesday, November 04, 2009 9:08 AMArthur XieMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer

    This behavior is caused by UAC. The command needs to run in command window with high privilege. If you open “cmd” as administrator the command will run properly. How do you change policies related to time setting? You may also allow standard users to change time setting via policy and check the result.

    Usually we deploy Windows Time Service settings via policy. Please refer the following article.

    Windows Time Service Tools and Settings Windows Time Service

    You can create a GPO for time settings and apply it to every Windows 7 computers.


    Arthur Xie - MSFT

All Replies

  • Wednesday, November 04, 2009 9:08 AMArthur XieMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer

    This behavior is caused by UAC. The command needs to run in command window with high privilege. If you open “cmd” as administrator the command will run properly. How do you change policies related to time setting? You may also allow standard users to change time setting via policy and check the result.

    Usually we deploy Windows Time Service settings via policy. Please refer the following article.

    Windows Time Service Tools and Settings Windows Time Service

    You can create a GPO for time settings and apply it to every Windows 7 computers.


    Arthur Xie - MSFT