Stop-Process doesnt take -id or input from piped value

后端 未结 0 1004
抹茶落季
抹茶落季 2021-02-04 15:13

Invoke-Command -ComputerName $input -ScriptBlock {Get-Process -Name amazon-ssm-agent | foreach {Stop-Process -Force} -ErrorAction Stop}

When i pass the value to stop-proc

相关标签:
回答
  • 消灭零回复
提交回复
热议问题