Timeout Get-WMIObject cmdlet

后端 未结 6 1296
星月不相逢
星月不相逢 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:29

    You could try the get-wmiCustom function, posted here. Wouldn't it be nice if get-wmiObject had a timeout parameter? Let's upvote this thing.

提交回复
热议问题