Steps to reproduce
$proc = Start-Process notepad++ -PassThru
Get-Process -Id $proc.Id
Stop-Process $proc
get-process -Id $proc.Id
Expected behavior
NPM(K) PM(M) WS(M) CPU(s) Id SI ProcessName
------ ----- ----- ------ -- -- -----------
3 0,56 1,89 0,02 5996 7 notepad++
Get-Process: untitled:Untitled-1:4:1
Line |
4 | get-process -Id $proc.Id
| ~~~~~~~~~~~~~~~~~~~~
| Cannot find a process with the process identifier 1598.
Actual behavior
NPM(K) PM(M) WS(M) CPU(s) Id SI ProcessName
------ ----- ----- ------ -- -- -----------
3 0,57 1,86 0,05 5580 7 notepad++
0 0,00 0,00 0,08 5580
Environment data
Name Value
---- -----
PSVersion 7.0.1
PSEdition Core
GitCommitId 7.0.1
OS Microsoft Windows 10.0.18363
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Steps to reproduce
Expected behavior
Actual behavior
Environment data