Title: `Get-Process -IncludeUserName` fails to retrieve the user name for certain processes (`.UserName` property) · Issue #21300 · PowerShell/PowerShell · GitHub
Open Graph Title: `Get-Process -IncludeUserName` fails to retrieve the user name for certain processes (`.UserName` property) · Issue #21300 · PowerShell/PowerShell
X Title: `Get-Process -IncludeUserName` fails to retrieve the user name for certain processes (`.UserName` property) · Issue #21300 · PowerShell/PowerShell
Description: Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerShell 5.1 and PowerShell. Steps to reprodu...
Open Graph Description: Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerSh...
X Description: Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerSh...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/21300
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`Get-Process -IncludeUserName` fails to retrieve the user name for certain processes (`.UserName` property)","articleBody":"### Prerequisites\r\n\r\n- [X] Write a descriptive title.\r\n- [X] Make sure you are able to repro it on the [latest released version](https://github.com/PowerShell/PowerShell/releases)\r\n- [X] Search the existing issues.\r\n- [X] Refer to the [FAQ](https://github.com/PowerShell/PowerShell/blob/master/docs/FAQ.md).\r\n- [X] Refer to [Differences between Windows PowerShell 5.1 and PowerShell](https://learn.microsoft.com/powershell/scripting/whats-new/differences-from-windows-powershell).\r\n\r\n### Steps to reproduce\r\n\r\nUnlike 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:\r\n\r\n```powershell\r\n# Run on a W11 machine\r\n#requires -RunAsAdministrator\r\nGet-Process -IncludeUserName fontdrvhost | % UserName\r\n```\r\n\r\n\r\n### Expected behavior\r\n\r\n```console\r\nFont Driver Host\\UMFD-0\r\nFont Driver Host\\UMFD-1\r\n```\r\n\r\nThis is what you get in Windows PowerShell.\r\n\r\n\r\n### Actual behavior\r\n\r\n```console\r\n(No output)\r\n```\r\n\r\n\r\n### Error details\r\n\r\n_No response_\r\n\r\n### Environment data\r\n\r\n```powershell\r\nPowerShell 7.4.1 / 7.5.0-preview.2 on Windows 11\r\n```\r\n\r\n\r\n### Visuals\r\n\r\n_No response_","author":{"url":"https://github.com/mklement0","@type":"Person","name":"mklement0"},"datePublished":"2024-03-04T17:58:23.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/21300/PowerShell/issues/21300"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:4a62b836-f101-9ed7-6ce0-a65f4b0b9846 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9AA2:223D7:47B892:618277:6A5803A8 |
| html-safe-nonce | 2434ab9aa9c9f439abd4e05b0c9e8f2e313233cf0d96a019676a130d1e8b8ac4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QUEyOjIyM0Q3OjQ3Qjg5Mjo2MTgyNzc6NkE1ODAzQTgiLCJ2aXNpdG9yX2lkIjoiNzYxNzY5Nzc0NjIzMDE4MjgyNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 8bc9985e37b55442076a7bea944c233e945055845cb1ad2d270186883afa9cef |
| hovercard-subject-tag | issue:2167421407 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/21300/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7165cbe62b19bcf00fd8880d5328ea84a16f54020785b1f3edf7eb7c470b271c/PowerShell/PowerShell/issues/21300 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7165cbe62b19bcf00fd8880d5328ea84a16f54020785b1f3edf7eb7c470b271c/PowerShell/PowerShell/issues/21300 |
| og:image:alt | Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerSh... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mklement0 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 49c8c15fabcbf356d607a90ca115c13b273e42ff8b74155de050fd229a9b0121 |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 3fb1f684e7a833eb1b2d01d39875a2b52cb4fe9b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width