Results 1 to 3 of 3
Threaded View
-
15th Jul 2012, 01:38 PM #1
Synchronize Windows Server 2008 time during startup
Click in the clock with the right mouse button and select Adjust date/time, then go to the Internet Time tab, hit Change settings and Update now. If it works, we can proceed.
Create a file with the following contents in C:\sync-clock.php
PHP Code:<?php
// Attempt resync
system('w32tm /resync', $return_var);
while( $return_var !== 0 )
{
// Sleep to avoid excessive looping
sleep(10);
// Attempt resync
system('w32tm /resync', $return_var);
}
// Successful exit
exit(0);
?>
Go to Task Scheduler Library and Create a Basic Task with When the computer starts as Trigger.
Action will be to Start a Program, Input the path to your php executable (php.exe) in Program/Script.
Add Arguments: -n -f "C:\sync-clock.php"
After task is created, edit its properties:
Change User or Group and type SYSTEM, then confirm
Tick Run with highest privileges
Confirm the changes.NewEraCracker Reviewed by NewEraCracker on . Synchronize Windows Server 2008 time during startup Click in the clock with the right mouse button and select Adjust date/time, then go to the Internet Time tab, hit Change settings and Update now. If it works, we can proceed. Create a file with the following contents in C:\sync-clock.php <?php // Attempt resync system('w32tm /resync', $return_var); while( $return_var !== 0 ) { // Sleep to avoid excessive looping Rating: 5Trusted: Dom, l0calh0st, 0ccul7, robert420
Find all threads started by NewEraCracker
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
[Dedicated] USA server |1Gb/s unmetered | 16 GB DDR3 |4TB HDD | windows server 2008 include
By freecbc3 in forum ArchiveReplies: 15Last Post: 25th Dec 2010, 01:05 AM -
Server with Windows 2008 on it
By pi0tr3k in forum Technical Help Desk SupportReplies: 0Last Post: 2nd Nov 2010, 10:39 AM -
best av for windows server 2008 ?
By pankaj in forum Webmaster DiscussionReplies: 1Last Post: 29th Oct 2010, 01:01 PM -
Need help about Windows Server 2008 RC2 RDP
By Last Word in forum Server ManagementReplies: 4Last Post: 26th Oct 2010, 03:41 PM -
How to make multiple admins in Windows Server 2008 run at same time?
By LEVAC109 in forum Technical Help Desk SupportReplies: 2Last Post: 30th Jul 2010, 06:01 AM
themaLeecher - leech and manage...
Version 4.94 released. Open older version (or...