IT Management Daily
Storage Daily
Security Daily
FREE NEWSLETTERS
search
 

follow us on Twitter


internet.commerce
Be a Commerce Partner















internet.com
IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers




Products
 LinqConnect Express (LinqConnect Express)
 LinqConnect 2.00 (Devart)
 EMS SQL Manager for MySQL (EMS Database Management Solutions, Inc.)
 EMS SQL Management Studio for MySQL (EMS Database Management Solutions, Inc.)
 Database Designer for PostgreSQL (MicroOLAP Technologies LTD)
 ESBFinCalc Pro - Financial Calculator (ESB Consultancy)
» Enterprise IT Planet » Resources » SMS Scripts

Script for Remote Synchronization of Workstation's Time with PDC

September 26, 2003

Email Print Digg This Add to del.icio.us
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.

<< Back to 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:\winnt\system32\net 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.

Email Print Digg This Add to del.icio.us

SMS Scripts Archives