以编程方式将非域计算机上的时间与域控制器同步
我正在寻找一种将非域 xp 计算机上的时间与 Active Directory 中的域控制器同步的方法。 我知道我们可以使用 net use 然后 net time 命令,但我想知道是否还有其他方法可以做到这一点,因为我真的不喜欢调用进程。
I'm looking for a way to sync time on non-domain xp machine with domain controller in 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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我在 .Net 框架中没有看到任何支持这一点的内容。最好的选择是执行
w32tm /resync
I have seen nothing in the .Net framework that supports this. Your best bet is to execute
w32tm /resync