複製鏈接
請複製以下鏈接發送給好友

net time

鎖定
net time是使計算機的時鐘與另一台計算機或域的時間同步,語種是英語。
中文名
net time
語    種
英語
解釋1
純工作時間
解釋2
低定額

net time詞典釋義

1、純工作時間;
2、低定額;
3、加工時間

net time命令提示符

net time語法

net time
[\\ComputerName | /domain[:DomainName] | /rtsdomain[:DomainName]] [/set]
[\\ComputerName] /querysntp
[\\ComputerName] /setsntp[:NTP Server List]

net time參數

\\ComputerName指定要檢查或要與之同步的服務器的名稱。
/domain[ :DomainName]指定要同步時鐘的域。
/rtsdomain[:domainname]指定要與之同步時鐘的“可信時間服務器”所在的域。
/set使計算機的時鐘與指定的計算機或域的時間同步
/querysntp顯示當前為本地計算機或 ComputervNname 所指定的計算機配置的網絡時間協議 (NTP) 服務器的名稱。
/setsntp[:NTPServerList]指定本地計算機所使用的 NTP 時間服務器的列表。該列表可以包含 IP地址或 DNS名稱,並用空格分開。如果使用多個時間服務器,則必須使用引號引住該列表。
【備註】使用/set參數時可以直接在後面加上/y或/yes參數實現不詢問直接更改時間:
net time \\ComputerName /set /y

net time應用舉例

域控制器:msserver (Windows 2000 Advance Server SP4簡體中文版)
域 名:zsmstr.com
客 户 機:Windows XPPro SP2 (English)
A、查看計算機的默認時間服務器
語法:net time /querysntp
如下:
C:\Documents and Settings\jerry>net time /querysntp
The current SNTP value is: msserver (時間服務器為:MSSERVER)
The command completed successfully.
B、改變計算機的默認時間服務器
語法:net time /setsntp [:時間服務器地址]
如下:
C:\Documents and Settings\jerry>net time /setsntp:time.windows.com
The command completed successfully.
時間服務器改為:time.windows.com
C:\Documents and Settings\jerry>net time /querysntp
The current SNTP value is: time.windows.com
The command completed successfully.
更改後查詢的結果為:time.windows.com
C、顯示指定計算機的的當前時間
語法:net time \\computer
如下:
C:\Documents and Settings\jerry>net time \\msserver.zsmstr.com (或\\msserver)
Current time at \\msserver.zsmstr.com is 2005/10/10 下午 04:09
The command completed successfully.
D、指定要與之同步的域
語法:net time /domain[:域名] /set
net time /domain /set (使計算機的時間與當前域的當前時間同步)
如下:(注意在這裏把客户機時間改快一個小時。)
C:\Documents and Settings\jerry>net time /domain:zsmstr /set
Current time at \\MSSERVER is 2005/10/10 下午 04:14
The current local clock is 2005/10/10 下午 05:14
Do you want to set the local computer's time to match the
time at \\MSSERVER? (Y/N) [Y]: y
The command completed successfully.

net time實例

比如你的局域網裏有一台機器,他開着guest用户,密碼為空,他的ip是192.168.1.2命令如下:net use \\192.168.1.2\ipc$ "" /user:guest這樣就連上了他的ipc共享,上面的""裏面是密碼,這裏密碼為空然後net time \\192.168.1.2這樣就能看到他的時間了。