I wish to do some testing on my local machine which requires me to put the date forward a year. So I can test some stuff in SQL Server (i've found it not possible to override the sql server time).
However because I'm connected to a domain, I believe this is causing the time to be reset to normal a few moments after I try to override it.
I understand that it's probably important for the local and domain time to be insync, but is it possible to temporarily block the clock from being reset?
Disconnecting from the network isn't an option, as I require an internet connection.
If there is a manual way to block the time reset what are the likely reprocutions? I don't want to screw anything up on the network :-)
Open the registry editor (
regedit
), navigate to:Find the
REG_SZ
value namedType
. Edit the value toNoSync
. Set it back toNt5DS
when you need to sync with the domain hierarchy again.You can do this from the command line by calling
or in PowerShell, with:
Disable the Windows Time service or block the outbound port 123 on your local firewall.
You can type this in the cmd terminal to stop the Windows Time Sync. It does what you needed in Window OS.
windows