Sunday, June 20, 2021

Script for Remote Synchronization of Workstation’s Time with PDC

Here’s a small batch file from Karanjit Sidhu that allows the administrator to remotely synchronize a workstation’s time with the PDC (as the defualt domain user doesn’t have the right to sync the time of the PC). By default, SMS requires its client to have a time sync of inside of 300 seconds to work efficiently with it.

To sync the workstation time with the PDC, the admin will need to copy or download the small batch file FixTime.bat from below. Also, he or she will need the utility PsExec.exe from (direct download link for PSExec.exe). The admin will also require a temp Domain Admin account which can be disabled when not in use.

Download the FixTime.bat file.

SMS Scripts list.

The contents of the batch file are as follows:


@echo off
If .%1==. goto syntax
echo  % Invaild Argument %
echo  Syntax :
echo  Fixtime MachineName
goto end

rem Please replace  with username of a Domain Admin
rem Please replace  with password of the same account

psexec %1 - u  -p -d c:winntsystem32net time
/domain: /set /y
goto end


Disclaimer: We hope that the information in these pages is valuable to you. Your use of the information contained in these pages, however, is at your sole risk. All information on these pages is provided "as -is", without any warranty, whether express or implied, of its accuracy, completeness, fitness for a particular purpose, title or non-infringement, and none of the third-party products or information mentioned in the work are authored, recommended, supported or guaranteed by me. We shall not be liable for any damages you may sustain by using this information, whether direct, indirect, special, incidental or consequential, even if it has been advised of the possibility of such damages.

Similar articles

Latest Articles

3 AI Implementations That...

I was on a joint educational call for the World Talent Economic Economic forum on mobile computing this week. We drifted to topics that...

Survey of Site Reliability...

NEW YORK — Site reliability engineers (SREs) are warning of a looming scalability ceiling and saying the adoption of AIOps isn’t happening at a...

Druva Integrates sfApex to...

SUNNYVALE, Calif. — A maker of software for cloud data protection and management is helping companies safeguard essential customer data that their sales and...

Best Data Science Tools...

Data science has transformed our world. The ability to extract insights from enormous sets of structured and unstructured data has revolutionized numerous fields —...