Pages

4/07/2011

Dealing with WMI Timeouts « Use PowerShell

Dealing with WMI Timeouts « Use PowerShell: "The timeout value is a System.TimeSpan object. You can specify the value with a TimeSpan object, a number of ticks, or a string that can be cast to a TimeSpan.

It can be set like this:

$wmi = [wmi]”

$wmi.psbase.options.timeout =’0:0:2′ #String that will be cast to a two second TimeSpan"

No comments: