Title: Cannot enumerate named pipes with Get-ChildItem · Issue #11898 · PowerShell/PowerShell · GitHub
Open Graph Title: Cannot enumerate named pipes with Get-ChildItem · Issue #11898 · PowerShell/PowerShell
X Title: Cannot enumerate named pipes with Get-ChildItem · Issue #11898 · PowerShell/PowerShell
Description: Steps to reproduce On Windows run the following on PowerShell Core 7 # Works on 5, 6, but not 7 Get-ChildItem -Path '\\.\pipe\' | Select-Object -ExpandProperty FullName # Works on all [System.IO.Directory]::EnumerateFiles('\\.\pipe\') Ex...
Open Graph Description: Steps to reproduce On Windows run the following on PowerShell Core 7 # Works on 5, 6, but not 7 Get-ChildItem -Path '\\.\pipe\' | Select-Object -ExpandProperty FullName # Works on all [System.IO.Di...
X Description: Steps to reproduce On Windows run the following on PowerShell Core 7 # Works on 5, 6, but not 7 Get-ChildItem -Path '\\.\pipe\' | Select-Object -ExpandProperty FullName # Works on all [Syst...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/11898
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Cannot enumerate named pipes with Get-ChildItem","articleBody":"# Steps to reproduce\r\n\r\nOn Windows run the following on PowerShell Core 7\r\n\r\n```powershell\r\n# Works on 5, 6, but not 7\r\nGet-ChildItem -Path '\\\\.\\pipe\\' | Select-Object -ExpandProperty FullName\r\n\r\n# Works on all\r\n[System.IO.Directory]::EnumerateFiles('\\\\.\\pipe\\')\r\n```\r\n\r\n# Expected behavior\r\n\r\n`Get-ChildItem` should return the named pipes on all PowerShell versions and match the output of the .NET method.\r\n\r\n# Actual behavior\r\n\r\nPowerShell 5 and 6 output the named pipes but 7 outputs the FullName of contents of the root drive.\r\n\r\n```none\r\nPS C:\\Users\\vagrant-domain\u003e Get-ChildItem -Path '\\\\.\\pipe\\' | Select-Object -ExpandProperty FullName\r\nC:\\PerfLogs\r\nC:\\Program Files\r\nC:\\Program Files (x86)\r\nC:\\temp\r\nC:\\tools\r\nC:\\Users\r\nC:\\Windows\r\n\r\nPS C:\\Users\\vagrant-domain\u003e [System.IO.Directory]::EnumerateFiles('\\\\.\\pipe\\')\r\n\\\\.\\pipe\\InitShutdown\r\n\\\\.\\pipe\\lsass\r\n\\\\.\\pipe\\ntsvcs\r\n\\\\.\\pipe\\scerpc\r\n...\r\n```\r\n\r\nEven using `-LiteralPath` does not work on v7 and `Get-Item -Path '\\\\.\\pipe\\` (with and without the trailing \\) fails to find a file\r\n\r\n# Environment data\r\n\r\n```none\r\n# PS v5 (works)\r\nName Value\r\n---- -----\r\nPSVersion 5.1.17763.771\r\nPSEdition Desktop\r\nPSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}\r\nBuildVersion 10.0.17763.771\r\nCLRVersion 4.0.30319.42000\r\nWSManStackVersion 3.0\r\nPSRemotingProtocolVersion 2.3\r\nSerializationVersion 1.1.0.1\r\n\r\n# PS v6 (works)\r\nName Value\r\n---- -----\r\nPSVersion 6.2.4\r\nPSEdition Core\r\nGitCommitId 6.2.4\r\nOS Microsoft Windows 10.0.17763\r\nPlatform Win32NT\r\nPSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}\r\nPSRemotingProtocolVersion 2.3\r\nSerializationVersion 1.1.0.1\r\nWSManStackVersion 3.0\r\n\r\n# PS v7 (doesn't work)\r\nName Value\r\n---- -----\r\nPSVersion 7.0.0-rc.2\r\nPSEdition Core\r\nGitCommitId 7.0.0-rc.2\r\nOS Microsoft Windows 10.0.17763\r\nPlatform Win32NT\r\nPSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}\r\nPSRemotingProtocolVersion 2.3\r\nSerializationVersion 1.1.0.1\r\nWSManStackVersion 3.0\r\n```","author":{"url":"https://github.com/jborean93","@type":"Person","name":"jborean93"},"datePublished":"2020-02-19T23:38:51.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/11898/PowerShell/issues/11898"}
| 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:a144cc41-987e-725f-f200-adc6a4b1be2f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B11E:3D6979:1369225:1BF977E:6A57B801 |
| html-safe-nonce | c834499af81303f01e119b1259d6c21ebd2c2876a13a2a6adb34e94c06e21a96 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMTFFOjNENjk3OToxMzY5MjI1OjFCRjk3N0U6NkE1N0I4MDEiLCJ2aXNpdG9yX2lkIjoiNDE4MTQ2NTY0MDE2MTc1MzA4OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 293eaaa4ca9a360be6f862816da5664bddb01e096aa51cb2e4f0b89a90f5ddd6 |
| hovercard-subject-tag | issue:567922528 |
| 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/11898/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cf9b2e88f0c02e837801f3b1cc902bce8c9214489432fe5b7027c236588182c0/PowerShell/PowerShell/issues/11898 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cf9b2e88f0c02e837801f3b1cc902bce8c9214489432fe5b7027c236588182c0/PowerShell/PowerShell/issues/11898 |
| og:image:alt | Steps to reproduce On Windows run the following on PowerShell Core 7 # Works on 5, 6, but not 7 Get-ChildItem -Path '\\.\pipe\' | Select-Object -ExpandProperty FullName # Works on all [System.IO.Di... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jborean93 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 899c314dfde9abcf8fc1fe8c04f09866b347ea06f43166d653afc482795c9fca |
| 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 | 67aa73f3bba9e68b2de0ebe01c65fcd120461cba |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width