Timeout Get-WMIObject cmdlet

后端 未结 6 1300
星月不相逢
星月不相逢 2020-12-06 15:00

I run a script which performs many WMI-querys - but the cmdlet hangs if the server doesn\'t answer.. Is there any way I can make this (or any other cmndlet for that matter)

6条回答
  •  执念已碎
    2020-12-06 15:10

    Glad my Get-WmiCustom function here http://blogs.msdn.com/b/dmuscett/archive/2009/05/27/get_2d00_wmicustom.aspx is useful.

提交回复
热议问题