Syed Jahanzaib Personal Blog to Share Knowledge !

November 5, 2015

Adding External NTP Server in Domain Controller / Short Notes

Filed under: Microsoft Related — Tags: , , — Syed Jahanzaib / Pinochio~:) @ 12:56 PM

SHORT NOTES FOR PERSONNEL REFERENCE ONLY


Command to check time on remote Windows PC.

all commands should be executed using administrative privileged account.

net time \\REMOTEPC

 

Adding external NTP server on DC

# Set NTP on DC / on server

w32tm /config /manualpeerlist:"59.106.180.168,0x1 62.201.215.14,0x1 "

w32tm /config /reliable:yes

net stop w32time && net start w32time

 

Command for client side windows , to force update time from DC

I added this file in GP so that every computer on reboot is forced to update time via server

# For client
net time \\DC_SERVER /set /y

 

Using PSTOOLS to execute command on remote PC.

# run command on remote computer.
PsExec.exe \\$1 -u DOMAIN\ADMIN -p PASS cmd "/c net time \\DC_SERVER /set /y"

 

Force client update from your admin PC forcefully.

I sued following script / batch file [named setrtime.bat] to manually update time on remote pc via remote, and show before/after time.

@echo off
cls
echo Current time of %1
echo -------------------------
net time \\%1
echo -------------------------
PsExec.exe \\%1 -u DOMAIN\ADMIN -p PASS cmd "/c net time \\DC_SERVER /set /y"
echo -------------------------
echo Current time of %1 AFTER CHANGING
net time \\%1

now use it like

netrtime.bat REMOTEPCNAME

Advertisements

2 Comments »

  1. assallam allkum sir, i need the mikrotik ver 6.xx x86 OS with crack software please help me,

    i have the motherboard msi model ms-7418 is having mini e – pci express card option in pci card model aw-ge780. so i need the

    mini pci card drivers support mikrotik os.

    i am install mikrotik os ver 5.18 with crack. but the only is mini pci card drivers will not support …. how to solve this problem ?

    kindly send a mail i am waiting your reply,

    faiyazuddin Network Administrator, india. mob.919291597110

    On Wed, Nov 4, 2015 at 11:56 PM, Syed Jahanzaib Personal Blog to Share Knowledge ! wrote:

    > Syed Jahanzaib / Pinochio~:) posted: “SHORT NOTES FOR PERSONNEL REFERENCE > ONLY Command to check time on remote Windows PC. all commands should be > executed using administrative privileged account. Adding external NTP > server on DC Command for ” >

    Like

    Comment by faiyazuddin mohammed — June 4, 2016 @ 9:11 PM


RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: