Powershell command timeout

后端 未结 2 1331
情歌与酒
情歌与酒 2021-01-23 18:50

I am trying to execute a function or a scriptblock in powershell and set a timeout for the execution.

Basically I have the following (translated into pseudocode):

<
2条回答
  •  粉色の甜心
    2021-01-23 19:41

    I think you might want to investigate using Powershell runspaces:

    http://learn-powershell.net/2012/05/13/using-background-runspaces-instead-of-psjobs-for-better-performance/

提交回复
热议问题