Naveed Posted January 19, 2010 Share Posted January 19, 2010 Set objSWbemDateTime = CreateObject("WbemScripting.SWbemDateTime") strComputer = InputBox ("Enter Machine Name") Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2") Set colOperatingSystems = objWMIService.ExecQuery ("Select * from Win32_OperatingSystem") For Each objOperatingSystem in colOperatingSystems objSWbemDateTime.Value = objOperatingSystem.LastBootUpTime MsgBox "Last Boot Time For " & UCase(strComputer) & " Was: " & objSWbemDateTime.GetVarDate(False) Need help converting above code for use in autoit to check for last boot time on network machine. can anybody help? Thanks Link to comment Share on other sites More sharing options...
jvanegmond Posted January 19, 2010 Share Posted January 19, 2010 http://www.autoitscript.com/forum/index.php?showtopic=12143 github.com/jvanegmond Link to comment Share on other sites More sharing options...
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