i am having an issue with not being able to get the timeout option to work.
I want to set the time out for 1 min or so but to no avail to get it to work .
i have tried time span also (timespan(0,1,0)
Dim options As New ConnectionOptions
Dim query As ObjectQuery
Dim searcher As ManagementObjectSearcher
Dim queryCollection As ManagementObjectCollection
Dim m As ManagementObject
Dim scope As New ManagementScope("\\" & oName & "\root\cimv2", options)
scope.Options.Timeout = New TimeSpan(20000000)
Catch ex As System.UnauthorizedAccessException
oMsg &= "Connect UnauthorizedAccessException: " & ex.Message
Catch ex As System.Runtime.InteropServices.COMException
oMsg &= "Connect COMException: " & ex.Message