Title: Error when starting powershell 7.4, 7.5 or 7.6; "Index was out of range. Must be non-negative and less than or equal to the size of the collection. (Parameter “startIndex”)" · Issue #26536 · PowerShell/PowerShell · GitHub
Open Graph Title: Error when starting powershell 7.4, 7.5 or 7.6; "Index was out of range. Must be non-negative and less than or equal to the size of the collection. (Parameter “startIndex”)" · Issue #26536 · PowerShell/PowerShell
X Title: Error when starting powershell 7.4, 7.5 or 7.6; "Index was out of range. Must be non-negative and less than or equal to the size of the collection. (Parameter “startIndex”)" · Issue #26536 · 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/26536
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Error when starting powershell 7.4, 7.5 or 7.6; \"Index was out of range. Must be non-negative and less than or equal to the size of the collection. (Parameter “startIndex”)\"","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 am experiencing an issue with Powershell 7.4, 7.5, and 7.6. Whenever I start the shell, the following error occurs:\n\nPowerShell 7.4.13\nThe shell cannot be started. A failure occurred during initialisation:\nIndex was out of range. Must be non-negative and less than or equal to the size of the collection. (Parameter “startIndex”)\n\nThis problem does not occur in version 7.3. However, Windows 11 now always pushes 7.4 on me, which I unfortunately cannot use. \n\nI have already tried using -NoProfile and deleted the profile, but nothing has helped.\n\nUnfortunately, I have not been able to find anything helpful regarding this issue. Does anyone have any ideas?\n\nMany thanks in advance.\n\n### Expected behavior\n\n```console\nThe shell starts as expected without an error.\n```\n\n### Actual behavior\n\n```console\nThe shell cannot be started. A failure occurred during initialisation:\nIndex was out of range. Must be non-negative and less than or equal to the size of the collection. (Parameter “startIndex”)\n```\n\n### Error details\n\n```console\n\n```\n\n### Environment data\n\n```powershell\nCannot deliver that information becuase the shell doesnt start.\n```\n\n### Visuals\n\n_No response_","author":{"url":"https://github.com/segore","@type":"Person","name":"segore"},"datePublished":"2025-11-27T08:17:20.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":11},"url":"https://github.com/26536/PowerShell/issues/26536"}
| 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:a4e72f76-d521-712e-3c87-c040e40784cd |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9E50:3A24D:82DC91:B0A048:6A592ABA |
| html-safe-nonce | e78177b70c7c4286c106686de4ab3687a31c50cca2cd5608faaeaeeba20f468d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RTUwOjNBMjREOjgyREM5MTpCMEEwNDg6NkE1OTJBQkEiLCJ2aXNpdG9yX2lkIjoiNzE2NDg4MzI0ODMzODI1MDQyNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 42bd666b6756fc15a4c3a9643183442f58b75d71905f56e54b4c246429fd180a |
| hovercard-subject-tag | issue:3670338171 |
| 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/26536/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4d8e0450538543a30e9fdea272f13d016b59c5d69edc96535583c7b94f3c7e4b/PowerShell/PowerShell/issues/26536 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4d8e0450538543a30e9fdea272f13d016b59c5d69edc96535583c7b94f3c7e4b/PowerShell/PowerShell/issues/26536 |
| 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 | segore |
| hostname | github.com |
| expected-hostname | github.com |
| None | 30abb2b48d3b1b476bbaf01f49ead8ef91062bfd762d3fa28a956f4c99653343 |
| 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 | f2e5b4fd472ea10ac216e358bbd0821a90dae8bb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width