简体   繁体   English

在非域计算机上使用域控制器以编程方式同步时间

[英]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.

相关问题 如何在非域xp计算机上与域控制器同步时间? - how to sync time on a non-domain xp computer with domain controller? 从非域计算机连接到域SQL Server 2005 - Connect to domain SQL Server 2005 from non-domain machine Windows Forms 来自非域添加机器的模拟 - Windows Forms Impersonation from a non-Domain added machine C#ActiveDirectory - 如何从已加入域的计算机远程添加本地用户帐户到非域计算机 - C# ActiveDirectory - How do I add a local user account remotely from a domain-joined machine to a non-domain machine 使用Windows身份验证从非域计算机访问SQL Server 2005 - Access to SQL Server 2005 from a non-domain machine using Windows authentication 如何列出非域计算机上运行代码的域? - How to list domains running code from a non-domain computer? 在非域帐户上使用带有服务帐户凭据的Google API - Using Google API With Service Account Credentials on a non-domain account ASP.NET Boilerplate Domain Layer似乎包含非Domain类 - ASP.NET Boilerplate Domain Layer appears to contain non-Domain classes 使用.NET代码将系统时间同步到域控制器 - Sync system time to domain controller using .NET code 以编程方式确定当前域控制器 - Determine current domain controller programmatically
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM