Get remote PC's date time?

后端 未结 4 1346
误落风尘
误落风尘 2021-01-15 00:12

Is there any class available to get a remote PC\'s date time in .net? In order to do it, I can use a computer name or time zone. For each case, are there different ways to g

4条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-15 00:22

    You can use remote WMI and the Win32_TimeZone class. You do need to have permission to execute WMI queries on that machine. Avoid hassle like this by working with UTC instead of local time.

提交回复
热议问题