7 lines
243 B
PowerShell
7 lines
243 B
PowerShell
$proc = Get-Process -Id 29176 -ErrorAction SilentlyContinue
|
|
$out = "C:\docker\music\wp_modules.txt"
|
|
if ($proc) {
|
|
$proc.Modules | Select-Object ModuleName, FileName | Out-File $out
|
|
} else {
|
|
"Process 29176 not found" | Out-File $out
|
|
} |