Title: can not start · Issue #28298 · PowerShell/PowerShell · GitHub
Open Graph Title: can not start · Issue #28298 · PowerShell/PowerShell
X Title: can not start · Issue #28298 · 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/28298
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"can not start","articleBody":"### Prerequisites\n\n- [x] Write a descriptive title.\n- [x] Make sure you are able to repro it on the [latest released version](https://github.com/PowerShell/PowerShell/releases)\n- [x] Search the existing issues.\n- [x] Refer to the [FAQ](https://github.com/PowerShell/PowerShell/blob/master/docs/FAQ.md).\n- [x] Refer to [Differences between Windows PowerShell 5.1 and PowerShell](https://learn.microsoft.com/powershell/scripting/whats-new/differences-from-windows-powershell).\n\n### Steps to reproduce\n\nI installed the latest version of pwsh using the command \"winget install --id Microsoft.PowerShell --source winget\". However, this issue occurs every time a new version of pwsh is released on my computer. When I reinstalled the latest pwsh using the command \"winget install --id Microsoft.PowerShell --source winget\", pwsh could open normally again. But the same problem would occur again when a new version was released.\n\n\u003cimg width=\"2177\" height=\"977\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/27f7834a-60f8-40cf-af96-ac99976f936b\" />\n\n### Expected behavior\n\n```console\nnormal start\n```\n\n### Actual behavior\n\n```console\nThe startup failed and it cannot be used. Only by installing a new version through a command can it be used normally.\n```\n\n### Error details\n\n```console\nPowerShell 7.6.8\nProcess terminated.\ntotalWidth ('-17') must be a non-negative value. (Parameter 'totalWidth')\nActual value was -17.\n at System.Environment.FailFast(System.Runtime.CompilerServices.StackCrawlMarkHandle, System.String, System.Runtime.CompilerServices.ObjectHandleOnStack, System.String)\n at System.Environment.FailFast(System.String, System.Exception)\n at System.Environment.FailFast(System.String)\n at Microsoft.PowerShell.ManagedPSEntry.Start(System.String[], Int32)\n at Microsoft.PowerShell.ManagedPSEntry.Main(System.String[])\nSystem.ArgumentOutOfRangeException: totalWidth ('-17') must be a non-negative value. (Parameter 'totalWidth')\nActual value was -17.\n at System.ArgumentOutOfRangeException.ThrowNegative[T](T value, String paramName)\n at System.String.PadRight(Int32 totalWidth, Char paddingChar)\n at Microsoft.PowerShell.UpdatesNotification.ShowUpdateNotification(PSHostUserInterface hostUI)\n at Microsoft.PowerShell.ConsoleHost.Start(String bannerText, String helpText, Boolean issProvidedExternally)\n at Microsoft.PowerShell.UnmanagedPSEntry.Start(String[] args, Int32 argc)\n```\n\n### Environment data\n\n```powershell\nName Value\n---- -----\nPSVersion 7.6.9\nPSEdition Core\nGitCommitId 7.6.9\nOS Microsoft Windows 10.0.22631\nPlatform Win32NT\nPSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}\nPSRemotingProtocolVersion 2.4\nSerializationVersion 1.1.0.1\nWSManStackVersion 3.0\n```\n\n### Visuals\n\n_No response_","author":{"url":"https://github.com/lzb-libra","@type":"Person","name":"lzb-libra"},"datePublished":"2026-11-02T02:41:59Z","url":"https://github.com/PowerShell/PowerShell/issues/28298"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:2fc7e8b0-95a8-e1ed-5e24-b8acda7a7a28 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AA3A:20925:29D86D:39B2B2:6AFD0B47 |
| html-safe-nonce | 7a624e2bf87bd0000b21813d954457e0d8f8f1a78bb8fbd89ccfd9f6b71c4047 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQTNBOjIwOTI1OjI5RDg2RDozOUIyQjI6NkFGRDBCNDciLCJ2aXNpdG9yX2lkIjoiODkzNjI3MjAzNzc2MDc5NzUxMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | d1af5090bb331fb1d0905d4fad147b89042196c38a5fe3d38ad4dfb587f787fa |
| hovercard-subject-tag | issue:6155186970 |
| 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/28298/issue_layout |
| twitter:image | https://opengraph.githubassets.com/bdf23ef94b6114eb0d8daed76d48e9240348175998b7b848e5830d22ed21e374/PowerShell/PowerShell/issues/28298 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/bdf23ef94b6114eb0d8daed76d48e9240348175998b7b848e5830d22ed21e374/PowerShell/PowerShell/issues/28298 |
| 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 | lzb-libra |
| hostname | github.com |
| expected-hostname | github.com |
| None | b29de2abb97b6307b16270785efeb58b51a117d5a9b659acf00b77aa00e7043b |
| 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 | 8c9e619def6d670dc18a45d3b02cea938c1c7e47 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width