Apparently WQL does not contain an ORDER BY
clause. Is there a way to sort the result set based on one of the columns? For example:
Set objWMIService = GetObject("winmgmts:{impersonationLevel=impersonate}!\\.\root\cimv2")
sSQL = "Select Time,Source,Event,CategoryNum,Category,TypeNum,Type,User,ComputerName,Insertion1,Insertion2,Data from Win32_NTLogEvent Where Logfile = 'System' and SourceName = 'Service Control Manager'"
Set resultSet = objWMIService.ExecQuery (sSQL)
For Each objEvent In resultSet
...
Next
Is there a way to sort resultSet
by the Time
column?
DataList.Fields.Append "Time", adDate` Then ran test1.vbs from Command Line. Got the popup message I referenced. I am using Windows 7 Pro x64. – Neil Weicher Sep 12 '17 at 12:26