Kovitt Posted June 26, 2008 Posted June 26, 2008 (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 June 26, 2008 by Kovitt
Skruge Posted June 26, 2008 Posted June 26, 2008 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]
Kovitt Posted June 26, 2008 Author Posted June 26, 2008 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 \\computerThank 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now