PowerShell通过NTP/NT5DS同步时间.
############################################################################
##SyncTime.ps1
##Client time synchronization
##Set the time from ntp server
##If the computer is in domain,using NT5DS to synchronize the time to domain hierarchy.Else using NTP to synchronize the time to the server time.windows.com
##Hsing Hsu
##meng-xing.xu@hp.com
##2011.11.1
############################################################################
param($type,$help)
function funHelp()
{
$helpText=@"
DESCRIPTION:
NAME:SyncTime.ps1
Synchronize the client time.
PARAMETERS:
-type The type <NTP/NT5DS> of synchronizing the time.
-help print help file
SYNTAX:
SyncTime.ps1
Generates an error.You must supply a type name.
SyncTime.ps1 -type NTP
Using NTP to synchronize t