Title: get-psdrive shows `System.Span
Open Graph Title: get-psdrive shows `System.Span
X Title: get-psdrive shows `System.Span
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/20895
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"get-psdrive shows `System.Span\u003cUInt16\u003e[0]` on UNC drives","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\nWhen running s a simple `get-psdrive` the list of drives should appear with the mount points listed under **root**. It works for old Powershell, but not for 7.4.0: Where onece was an UNC name is now simply ` System.Span\u003cUInt16\u003e[0]` instead of a path. \n\n### Expected behavior\n\n```console\nPS C:\\\u003e get-psdrive\r\n\r\nName Used (GB) Free (GB) Provider Root CurrentLocation\r\n---- --------- --------- -------- ---- ---------------\r\nAlias Alias\r\nAllUsers 0,00 48,21 FileSystem C:\\ProgramData\r\nC 416,51 48,21 FileSystem C:\\ Users\\jg\r\nCert Certificate \\\r\nD 272,66 658,72 FileSystem D:\\\r\nEnv Environment\r\nFunction Function\r\nHKCR Registry HKEY_CLASSES_ROOT\r\nHKCU Registry HKEY_CURRENT_USER\r\nHKLM Registry HKEY_LOCAL_MACHINE\r\nHome 0,00 48,21 FileSystem C:\\Users\\jg\r\nJ 332,39 68,48 FileSystem \\\\server\\share\\Bu...\r\nK 8283,18 98,69 FileSystem \\\\server\\share\\sa...\r\nL 2048,11 633,01 FileSystem \\\\server\\share\\pr...\r\nM 2048,11 633,01 FileSystem \\\\server\\share\\da...\r\nN 8283,18 98,69 FileSystem \\\\server\\share\\br...\r\nO 8283,18 98,69 FileSystem \\\\server\\share\\ar...\r\nP FileSystem \\\\server\\share\\Ma...\r\nQ 2048,11 633,01 FileSystem \\\\server\\share\\Pr...\r\nS 75,66 27,34 FileSystem \\\\server\\share\\se...\r\nScripts 0,00 48,21 FileSystem C:\\Users\\jg\\Do...\r\nTaskBar 0,00 48,21 FileSystem C:\\Users\\jg\\AppData\\Roaming\\Micr...\r\nU 8283,18 98,69 FileSystem \\\\server\\share\\_s...\r\nVariable Variable\r\nWSMan WSMan\r\nX 2048,11 633,01 FileSystem \\\\server\\share\\wo...\r\nZ 8283,18 98,69 FileSystem \\\\server\\share\\is...\r\n\r\n\r\nPS C:\\\u003e $PSVersionTable.PSVersion\r\n\r\nMajor Minor Build Revision\r\n----- ----- ----- --------\r\n5 1 19041 3758\r\n\r\n\r\nPS C:\\\u003e\n```\n\n\n### Actual behavior\n\n```console\nPS C:\\\u003e get-psdrive\r\n\r\nName Used (GB) Free (GB) Provider Root CurrentLocation\r\n---- --------- --------- -------- ---- ---------------\r\nAlias Alias\r\nAllUsers 416,71 48,00 FileSystem C:\\ProgramData\r\nC 416,71 48,00 FileSystem C:\\ Users\\jg\\Desktop\r\nCert Certificate \\\r\nD 272,66 658,72 FileSystem D:\\\r\nEnv Environment\r\nFunction Function\r\nHKCR Registry HKEY_CLASSES_ROOT\r\nHKCU Registry HKEY_CURRENT_USER\r\nHKLM Registry HKEY_LOCAL_MACHINE\r\nHome 416,71 48,00 FileSystem C:\\Users\\jg\r\nJ 332,39 68,48 FileSystem System.Span\u003cUInt16\u003e[0]\r\nK 8283,18 98,69 FileSystem System.Span\u003cUInt16\u003e[0]\r\nL 2048,11 633,01 FileSystem System.Span\u003cUInt16\u003e[0]\r\nM 2048,11 633,01 FileSystem System.Span\u003cUInt16\u003e[0]\r\nN 8283,18 98,69 FileSystem System.Span\u003cUInt16\u003e[0]\r\nO 8283,18 98,69 FileSystem System.Span\u003cUInt16\u003e[0]\r\nP FileSystem System.Span\u003cUInt16\u003e[0]\r\nQ 2048,11 633,01 FileSystem System.Span\u003cUInt16\u003e[0]\r\nS 75,66 27,34 FileSystem System.Span\u003cUInt16\u003e[0]\r\nScripts 416,71 48,00 FileSystem C:\\Users\\jg\\Documents\\_Drive_D\\Dev…\r\nTaskBar 416,71 48,00 FileSystem C:\\Users\\jg\\AppData\\Roaming\\Micros…\r\nTemp 416,71 48,00 FileSystem C:\\Users\\jg\\AppData\\Local\\Temp\\\r\nU 8283,18 98,69 FileSystem System.Span\u003cUInt16\u003e[0]\r\nVariable Variable\r\nWSMan WSMan\r\nX 2048,11 633,01 FileSystem System.Span\u003cUInt16\u003e[0]\r\nZ 8283,18 98,69 FileSystem System.Span\u003cUInt16\u003e[0]\r\n\r\nPS C:\\\u003e\n```\n\n\n### Error details\n\n```console\nPS C:\\\u003e get-error\r\nPS C:\\\u003e\n```\n\n\n### Environment data\n\n```powershell\nPS C:\\\u003e $PSVersionTable.PSVersion\r\n\r\nMajor Minor Patch PreReleaseLabel BuildLabel\r\n----- ----- ----- --------------- ----------\r\n7 4 0\n```\n\n\n### Visuals\n\n_No response_","author":{"url":"https://github.com/Jens-G","@type":"Person","name":"Jens-G"},"datePublished":"2023-12-11T14:39:16.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":10},"url":"https://github.com/20895/PowerShell/issues/20895"}
| 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:426e80dc-1397-d3ae-f94b-11e6d520e54a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CE94:33520B:3132D:3FC9C:6A558407 |
| html-safe-nonce | 32ac114b5c7934144be7c6be771c70eb2d7f791c1db05aa1e22c3fcceac004fe |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRTk0OjMzNTIwQjozMTMyRDozRkM5Qzo2QTU1ODQwNyIsInZpc2l0b3JfaWQiOiI0ODkzNzA1NTExNzUxODU0MTUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 1f72a2d547f8a3edfd8b5278fce8f273bfe2ff93a4b06d46cbb23e6112bf5e40 |
| hovercard-subject-tag | issue:2035829733 |
| 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/20895/issue_layout |
| twitter:image | https://opengraph.githubassets.com/61004db35e2e059376080c3d7f87742202c3e3e815de784f129af281c3406011/PowerShell/PowerShell/issues/20895 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/61004db35e2e059376080c3d7f87742202c3e3e815de784f129af281c3406011/PowerShell/PowerShell/issues/20895 |
| 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 | Jens-G |
| hostname | github.com |
| expected-hostname | github.com |
| None | b5665c84831ed9ac4fb79519c16c9c5580ba8092fb8bb6e3e72972ec7197348e |
| 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 | 3215163789b3dc58dba97bd78a30c20c949f477f |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width