5 lines
504 B
PowerShell
5 lines
504 B
PowerShell
$moduleRoot = (Resolve-Path (Join-Path $PSScriptRoot '..\..')).Path
|
|
$dataRoot = if ($env:GYXX_DATA_ROOT) { $env:GYXX_DATA_ROOT } else { Join-Path $moduleRoot 'var' }
|
|
$profileRoot = Join-Path $dataRoot 'state\content_marketing\browser-profiles'
|
|
Get-WmiObject Win32_Process | Where-Object { $_.Name -eq 'chrome.exe' -and $_.CommandLine -like "*$profileRoot*" } | Select-Object ProcessId, ParentProcessId, @{Name='CmdStart';Expression={$_.CommandLine.Substring(0, [Math]::Min(200, $_.CommandLine.Length))}}
|