PowerShell 通过NTP/NT5DS同步时间

本文介绍了如何利用PowerShell命令在Windows域环境中,通过NTP(Network Time Protocol)和NT5DS(NT Domain Service)进行时间同步,确保服务器的时间准确性和一致性。
摘要由CSDN通过智能技术生成

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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值