net time /set -- System error 1314

mxgong
mxgong used Ask the Experts™
on
Hi All

I am trying to set NTP server in client, when I run:

net time /set \\dc1

I got the following error message:

"System Error 1314 has occurred
a required privilege is not held by the client"

Anyone knows how to fix this?

Thanks
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
give the account "Replace a process level token" rights in group policy
Computer Configuration\Windows Settings\Security Settings\Local Policies\User Rights Assignment\
 How To Synchronize the Time with the Windows Time Service in Windows XP

With Windows XP, the Windows Time service automatically synchronizes your computer's internal clock with a server’s clock in the network. The time source for this synchronization can be an Active Directory domain or to a workgroup.

When the computers are part of a workgroup, you can configure the computer to synchronize the Internet time. To do that, go to Date and Time Properties.

If the computers belong to an Active Directory domain, the Windows Time service configures itself automatically by using the Windows Time service that is available on domain controllers. The Windows Time service configures a domain controller in its domain as a reliable time source and synchronizes itself periodically with this source. You can modify or overwrite these settings, depending on your specific needs. Check "Automatically synchronize an Internet time server". You may select a time server. Then click Update Now.

To synchronize the time on a computer on a domain, Click Start, point to All Programs, point to Accessories, and then click Command Prompt. Type w32tm /resync, and then press ENTER.

Commented:
'net help time' provides more detailed info about the proper syntax; it's
either \\computername or /domain:... or /rtsdomain:... but not a mess.

To verify that the time service is synchronizing time at the command prompt,
type:

w32tm /v /once /test

To configure time service, you must:

net stop W32Time (stop the W32Time service)
net time /setsntp:{ntpservername}
net start W32Time (restart the service)

Set NTP time source on the PDC server, the rest of the forest would
synchronize the time automatically. You can find available NTP servers at
http://tycho.usno.navy.mil/time.html.


HTH,
Ken
http://msdn.microsoft.com/library/ [...] eWin2K.asp
Keeping Time with Win2K
Fundamentals of JavaScript

Learn the fundamentals of the popular programming language JavaScript so that you can explore the realm of web development.

Author

Commented:
Hi All

Current the net set to remote DC, I would like to change it to local DC.

Is it possible to write a login script and deploy it as group policy?

Thanks

Author

Commented:
For example.

I would like to change ntp server in my PC (in domain). My login account is domain admin rights and local admin rights.

Please see screen shot. The admin rights in the "Change system time".

but I am still getting error 1314.

Please help
ntp.PNG

Commented:
Add this to your login script...

NET TIME \\yourservername /SET /YES


Ken

Author

Commented:
I am domain admin rights, why I am not able to change system time?
Commented:
If the computers belong to an Active Directory domain, the Windows Time service configures itself automatically by using the Windows Time service that is available on domain controllers. The Windows Time service configures a domain controller in its domain as a reliable time source and synchronizes itself periodically with this source. You can modify or overwrite these settings, depending on your specific needs. Check "Automatically synchronize an Internet time server". You may select a time server. Then click Update Now.

To synchronize the time on a computer on a domain, Click Start, point to All Programs, point to Accessories, and then click Command Prompt. Type w32tm /resync, and then press ENTER.

Author

Commented:
Hi Ken

I got this:

C:\Users\abcd>w32tm /resync
Sending resync command to local computer
The following error occurred: Access is denied. (0x80070005)

Commented:
Did you say you sent the command? It has to be run from the local machine. Sorry if that is not clear. The login script should set your time server.

Are these XP machines?

Ken

Author

Commented:
Hi Ken

I run the command: C:\Users\abcd>w32tm /resync

And I got this message:
==================================
Sending resync command to local computer
The following error occurred: Access is denied. (0x80070005)
===================================

it's my local PC with domain admin logins. IT's Windows 7
run as administrator on the command prompt?

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial