Is there a way to get the current date / time on a remote PC?

  • Thread starter Thread starter William Cruz
  • Start date Start date
W

William Cruz

Is there a way to get the current date / time on a remote PC?

William
 
There may be an easier way, but using WMI and the Win32_OperatingSystem
class, you can use the LocalDateTime property.

Matt
 
If you are using .net 2.0, you could start by typing in wmi in help and
selecting the Getting started link below it. The first topic on the right
hand side will then be "How to: Connect to a remote computer" and to the
right of that will be the ManagementScope link. Click on that and it'll give
you a code example.

HTH.

S
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top