2

特定のプロセスが昇格されているかどうかを検出するにはどうすればよいですか。このプロセスは、私のコードが実行されているプロセスとは異なります。PowerShell または C# からこれを実行できるようにしたいと考えています。

4

2 に答える 2

1

たぶんこれが役立つかもしれません

Get-Process |
Add-Member -Name Elevated -MemberType ScriptProperty -Value {if ($this.Name -in @('Idle','System')) {$null} else {-not $this.Path -and -not $this.Handle} } -PassThru |
Format-Table Name,Elevated

http://www.powershellmagazine.com/2013/03/29/pstip-detecting-if-a-certain-process-is-elevated/から

于 2013-12-05T09:18:53.943 に答える