Skip to content

Instantly share code, notes, and snippets.

@cverbiest
Last active October 4, 2020 14:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cverbiest/da2485c16cc593988ac462bb168ae570 to your computer and use it in GitHub Desktop.
Save cverbiest/da2485c16cc593988ac462bb168ae570 to your computer and use it in GitHub Desktop.
OpenEdge Powershell snippets
# Kill all PDSOE AVM processes
# These prowin processes have -wy in the commandline
$Filter = "Name like '%prowin%' and Commandline like '% -wy %' "
Write-Host "Filter $Filter"
Get-WmiObject Win32_Process -Filter "$Filter" |
foreach-object `
-begin { Write-Host 'begin' } `
-process {
Write-Host 'Kill' $_.Commandline $_.
$_.Terminate()
} `
-end { Write-Host 'end' }
Start-Sleep -s 10
# List all _mprosrv processes with their commandline showing the database path
$process = "_mprosrv.exe"
Get-WmiObject Win32_Process -Filter "name = '$process'" | Select-Object CommandLine | Out-String -Width 4096
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment