[英]programmatically sync time on non-domain machine with domain controller
I'm looking for a way to sync time on non-domain xp machine with domain controller in Active Directory. 我正在寻找一种方法来将非域XP计算机上的时间与Active Directory中的域控制器同步。 I know we can use net use then net time command, but I wonder if there is any other way of doing it, because I don't really like to invoke a process. 我知道我们可以先使用net use然后再使用net time命令,但是我想知道是否还有其他方法可以这样做,因为我真的不喜欢调用流程。
I have seen nothing in the .Net framework that supports this. 在支持此功能的.Net框架中,我什么都没看到。 Your best bet is to execute w32tm /resync
最好的选择是执行w32tm /resync
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.