Activity Stream
48,167 MEMBERS
61103 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 3 of 3
  1.     
    #1
    Moderator
    NewEraCracker's Avatar

    Default 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 !== )
    {
        
    // Sleep to avoid excessive looping
        
    sleep(10);

        
    // Attempt resync
        
    system('w32tm /resync'$return_var);
    }

    // Successful exit
    exit(0);
    ?>
    Run Computer Management ( compmgmt.msc ) from Control Panel > System and Security > Administrative Tools.

    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: 5
    Trusted: Dom, l0calh0st, 0ccul7, robert420
    Find all threads started by NewEraCracker

  2.   Sponsored Links

  3.     
    #2
    Banned
    Website's:
    HotWallpapers.me AustraliaFlood.net VirtualUpload.net
    I'm using it, Thanks!

  4.     
    #3
    Moderator
    NewEraCracker's Avatar
    This script has been updated.
    Trusted: Dom, l0calh0st, 0ccul7, robert420
    Find all threads started by NewEraCracker

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 15
    Last Post: 25th Dec 2010, 01:05 AM
  2. Server with Windows 2008 on it
    By pi0tr3k in forum Technical Help Desk Support
    Replies: 0
    Last Post: 2nd Nov 2010, 10:39 AM
  3. best av for windows server 2008 ?
    By pankaj in forum Webmaster Discussion
    Replies: 1
    Last Post: 29th Oct 2010, 01:01 PM
  4. Need help about Windows Server 2008 RC2 RDP
    By Last Word in forum Server Management
    Replies: 4
    Last Post: 26th Oct 2010, 03:41 PM
  5. How to make multiple admins in Windows Server 2008 run at same time?
    By LEVAC109 in forum Technical Help Desk Support
    Replies: 2
    Last Post: 30th Jul 2010, 06:01 AM

Tags for this Thread

BE SOCIAL