Expected Behavior
I should be able to see all PowerServe process by running the following:
Get-Process pwsh | where commandline -match 'Start-PowerServe'
Current Behavior
When process is initiated by SYSTEM level process the command line is empty.
Grabbing all pwsh process:
get-process pwsh | select id,commandline
Id CommandLine
-- -----------
22084 "C:\Program Files\PowerShell\7\pwsh.exe" -NoLogo
72956 "C:\Program Files\PowerShell\7\pwsh.exe" -NoLogo
89868 "C:\Program Files\PowerShell\7\pwsh.exe" -NoLogo
…3616 "C:\Program Files\PowerShell\7\pwsh.exe" -NoLogo
…4128
Note that last blank one.
If I run the following, I can determine the PID:
> PowerServeClient.exe -c '$PID' -p LePipe
184128
Possible Solution
Not sure if this can be fixed, or if it just needs to be documented. I'm mostly interested in tracking perf of that process incase it needs to be killed.
Steps to Reproduce
- Execute a SYSTEM level process (in my case a python script) that calls PowerServeClient.
- Wait for pwsh process to be started
- Check running processes for pwsh with no commandline.
Your Environment
- Version:
PowerServeClient 0.0.1-alpha2+2da69ad335bab00597fe9d532983522a6fa29808
- Operating System(s): Windows 10 22H2 (19045.3570)
- PowerShell Version(s): 7.3.9
Expected Behavior
I should be able to see all PowerServe process by running the following:
Current Behavior
When process is initiated by SYSTEM level process the command line is empty.
Grabbing all pwsh process:
Note that last blank one.
If I run the following, I can determine the PID:
Possible Solution
Not sure if this can be fixed, or if it just needs to be documented. I'm mostly interested in tracking perf of that process incase it needs to be killed.
Steps to Reproduce
Your Environment
PowerServeClient 0.0.1-alpha2+2da69ad335bab00597fe9d532983522a6fa29808