Skip to content

Get-Process -IncludeUserName fails to retrieve the user name for certain processes (.UserName property) #21300

@mklement0

Description

@mklement0

Prerequisites

Steps to reproduce

Unlike for some system processes (e.g. wininit), the user name associated with fontdrvhost processes can be retrieved, but as of v7.4.1 isn't reported via Get-Process -IncludeUserName - unlike in Windows PowerShell:

# Run on a W11 machine
#requires -RunAsAdministrator
Get-Process -IncludeUserName fontdrvhost | % UserName

Expected behavior

Font Driver Host\UMFD-0
Font Driver Host\UMFD-1

This is what you get in Windows PowerShell.

Actual behavior

(No output)

Error details

No response

Environment data

PowerShell 7.4.1 / 7.5.0-preview.2 on Windows 11

Visuals

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions