fix(windows): finish rust collector cleanup
This commit is contained in:
@@ -123,9 +123,14 @@ function Test-UserHasSession {
|
||||
function Get-CollectorProcesses {
|
||||
param(
|
||||
[Parameter(Mandatory = $true)]
|
||||
[AllowEmptyString()]
|
||||
[string]$ScriptPath
|
||||
)
|
||||
|
||||
if ([string]::IsNullOrWhiteSpace($ScriptPath)) {
|
||||
return @()
|
||||
}
|
||||
|
||||
return @(
|
||||
Get-CimInstance Win32_Process -ErrorAction SilentlyContinue |
|
||||
Where-Object {
|
||||
|
||||
Reference in New Issue
Block a user