Title: Should Get-Item Cert:\ return an object · Issue #6258 · PowerShell/PowerShell · GitHub
Open Graph Title: Should Get-Item Cert:\ return an object · Issue #6258 · PowerShell/PowerShell
X Title: Should Get-Item Cert:\ return an object · Issue #6258 · PowerShell/PowerShell
Description: Calling Get-Item on the root of a provider should return an item. it does for these commands: Get-Item C:\ Get-Item HKLM:\ But not for this command Get-Item Cert:\ Behaviour is the same as it was in 5.1. I suspect it has always been this...
Open Graph Description: Calling Get-Item on the root of a provider should return an item. it does for these commands: Get-Item C:\ Get-Item HKLM:\ But not for this command Get-Item Cert:\ Behaviour is the same as it was i...
X Description: Calling Get-Item on the root of a provider should return an item. it does for these commands: Get-Item C:\ Get-Item HKLM:\ But not for this command Get-Item Cert:\ Behaviour is the same as it was i...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/6258
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Should Get-Item Cert:\\ return an object","articleBody":"Calling Get-Item on the root of a provider should return an item.\r\n\r\nit does for these commands:\r\n\r\n Get-Item C:\\\r\n Get-Item HKLM:\\\r\n\r\nBut not for this command\r\n\r\n Get-Item Cert:\\\r\n\r\nBehaviour is the same as it was in 5.1. I suspect it has always been this way. \r\n\r\nI am only creating this issue because I corrected a test in #6256 for #6245 that was malformed. It then started to fail on the assumption that Get-Item would give it an object in that case. I adjusted the test to no longer check the Cert:\\ path.\r\n\r\nSteps to reproduce\r\n------------------\r\n\r\n```powershell\r\nGet-Item Cert:\\\r\nGet-Item C:\\\r\nGet-Item HKLM:\\\r\n\r\n```\r\n\r\nExpected behavior\r\n-----------------\r\n\r\n```none\r\n\r\nName : CurrentUser\r\n\r\nName : LocalMachine\r\n\r\n Directory:\r\n\r\n\r\nMode LastWriteTime Length Name\r\n---- ------------- ------ ----\r\nd--hs- 2/25/2018 5:48 PM C:\\\r\n\r\n Hive:\r\n\r\n\r\nName Property\r\n---- --------\r\nHKEY_LOCAL_MACHINE\r\n\r\n```\r\n\r\nActual behavior\r\n---------------\r\n```none\r\n Directory:\r\n\r\n\r\nMode LastWriteTime Length Name\r\n---- ------------- ------ ----\r\nd--hs- 2/25/2018 5:48 PM C:\\\r\n\r\n Hive:\r\n\r\n\r\nName Property\r\n---- --------\r\nHKEY_LOCAL_MACHINE\r\n\r\n```\r\n\r\nEnvironment data\r\n----------------\r\n\r\n\u003c!-- provide the output of $PSVersionTable --\u003e\r\n\r\n```powershell\r\n\u003e $PSVersionTable\r\nName Value\r\n---- -----\r\nPSVersion 6.0.0\r\nPSEdition Core\r\nGitCommitId v6.0.0\r\nOS Microsoft Windows 10.0.16299\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```\r\n","author":{"url":"https://github.com/KevinMarquette","@type":"Person","name":"KevinMarquette"},"datePublished":"2018-02-27T12:21:49.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/6258/PowerShell/issues/6258"}
| 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:9e389964-c1b8-4bfb-487c-04d21608bdb3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9B04:2BB05E:C1B7F9:11954ED:6A54A711 |
| html-safe-nonce | 784673661e2d2f7fd18a759aa2548390b9720d9f0131112f162d8d8e3db18d91 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QjA0OjJCQjA1RTpDMUI3Rjk6MTE5NTRFRDo2QTU0QTcxMSIsInZpc2l0b3JfaWQiOiI2Nzg5ODMxMzQ1MjQ4MTg0MDgyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | e13c5921cfbfc9715df4ff010bc4bffa60ad7cd1700882b92070018d12b0cd73 |
| hovercard-subject-tag | issue:300608741 |
| 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/6258/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2d7c2a21dc7a126a205a7d0dbf40942e44a92d0d15352f526344d2a38544e359/PowerShell/PowerShell/issues/6258 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2d7c2a21dc7a126a205a7d0dbf40942e44a92d0d15352f526344d2a38544e359/PowerShell/PowerShell/issues/6258 |
| og:image:alt | Calling Get-Item on the root of a provider should return an item. it does for these commands: Get-Item C:\ Get-Item HKLM:\ But not for this command Get-Item Cert:\ Behaviour is the same as it was i... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | KevinMarquette |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| 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 | f8cfff6384f62259baea531c7f58bc7040f8dd92 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width