Syphirint Syphirint - 4 months ago 18
PowerShell Question

Powershell Get-Process missing parameter?

Currently I'm working on

Windows Server 2012 R2
with
Powershell 4.0
and can execute
Get-Process -IncludeUserName
while using elevated user rights as an admin. But when I try running the same command on a
Windows Server 2008 R2
with
Powershell 3.0
while using the same elevated user rights, the parameter
-IncludeUserName
isn't found. What's missing on the 2nd system for executing the command?

Answer

According to the Technet Article for get-process the -IncludeUserName parameter was not available in the get-process cmdlet until Powershell 4. You'll need to install the updated version in order to gain access to that feature.

Comments