Datamation Logo

Script for Remote Synchronization of Workstation’s Time with PDC

September 26, 2003
Datamation content and product recommendations are editorially independent. We may make money when you click on links to our partners. Learn More .

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 Sysinternals.com (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:


===FixTime.bat===

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

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

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

: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.   SEE ALL APPLICATIONS ARTICLES  

Subscribe to Data Insider

Learn the latest news and best practices about data science, big data analytics, artificial intelligence, data security, and more.

Datamation Logo

Datamation is the leading industry resource for B2B data professionals and technology buyers. Datamation's focus is on providing insight into the latest trends and innovation in AI, data security, big data, and more, along with in-depth product recommendations and comparisons. More than 1.7M users gain insight and guidance from Datamation every year.

Advertisers

Advertise with TechnologyAdvice on Datamation and our other data and technology-focused platforms.

Advertise with Us

Our Brands


Privacy Policy Terms & Conditions About Contact Advertise California - Do Not Sell My Information

Property of TechnologyAdvice.
© 2025 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.