Sign in to follow this  
Followers 0
Kovitt

Retrieve time form network machines?

3 posts in this topic

#1 ·  Posted (edited)

Hello, I am writing a script to check the time on machines on my network and compare it to the time on my machine. From what I have found there is no way to do this with auto it... Is there? Also if not how would I do this in dos?

Thanks!

Edited by Kovitt

Share this post


Link to post
Share on other sites



Welcome to the forums!

For a pure AutoIt solution, read the Win32_LocalTime attributes.

(If you're dealing with multiple time zones, then look at Win32_UTCTime and/or Win32_TimeZone)

If you haven't dealt with WMI before, grab the AutoIt Scriptomatic tool.

Otherwise you can parse the output of this command:

Net time \\computer

[font="Tahoma"]"Tougher than the toughies and smarter than the smarties"[/font]

Share this post


Link to post
Share on other sites

Welcome to the forums!

For a pure AutoIt solution, read the Win32_LocalTime attributes.

(If you're dealing with multiple time zones, then look at Win32_UTCTime and/or Win32_TimeZone)

If you haven't dealt with WMI before, grab the AutoIt Scriptomatic tool.

Otherwise you can parse the output of this command:

Net time \\computer
Thank you!!

I ended up using W32tm /monitor /computers:<names> and I justs sent this to a txt file then pulled it into an array

This gave me more accurate results (by the second)..

Thanks again for your help!! Its much appreciated :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0