Link to home
Start Free TrialLog in
Avatar of mxgong
mxgongFlag for Australia

asked on

net time /set -- System error 1314

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
Avatar of R. Andrew Koffron
R. Andrew Koffron
Flag of United States of America image

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.
'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
Avatar of mxgong

ASKER

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
Avatar of mxgong

ASKER

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
Add this to your login script...

NET TIME \\yourservername /SET /YES


Ken
Avatar of mxgong

ASKER

I am domain admin rights, why I am not able to change system time?
ASKER CERTIFIED SOLUTION
Avatar of ken2421
ken2421
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mxgong

ASKER

Hi Ken

I got this:

C:\Users\abcd>w32tm /resync
Sending resync command to local computer
The following error occurred: Access is denied. (0x80070005)
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
Avatar of mxgong

ASKER

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?