Title: Wildcard character in registry paths results in "Illegal characters in path." · Issue #4704 · PowerShell/PowerShell · GitHub
Open Graph Title: Wildcard character in registry paths results in "Illegal characters in path." · Issue #4704 · PowerShell/PowerShell
X Title: Wildcard character in registry paths results in "Illegal characters in path." · Issue #4704 · PowerShell/PowerShell
Description: In Win10 (10.0.16275.1000) and beta6, I am unable to use powershell to modify registry keys that are named "*". Steps to reproduce Remove-Item "HKCU:\Software\Classes\*\shell\" # or try with escape Remove-Item "HKCU:\Software\Classes\``*...
Open Graph Description: In Win10 (10.0.16275.1000) and beta6, I am unable to use powershell to modify registry keys that are named "*". Steps to reproduce Remove-Item "HKCU:\Software\Classes\*\shell\" # or try with escape...
X Description: In Win10 (10.0.16275.1000) and beta6, I am unable to use powershell to modify registry keys that are named "*". Steps to reproduce Remove-Item "HKCU:\Software\Classes\*\shell\" ...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/4704
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Wildcard character in registry paths results in \"Illegal characters in path.\"","articleBody":"In Win10 (10.0.16275.1000) and beta6, I am unable to use powershell to modify registry keys that are named \"*\". \r\n\r\nSteps to reproduce\r\n------------------\r\n\r\n```powershell\r\nRemove-Item \"HKCU:\\Software\\Classes\\*\\shell\\\"\r\n# or try with escape\r\nRemove-Item \"HKCU:\\Software\\Classes\\``*\\shell\\\"\r\n```\r\n\r\nExpected behavior\r\n-----------------\r\n\r\n```none\r\nRegistry key is removed.\r\n```\r\n\r\nActual behavior\r\n---------------\r\n\r\n```none\r\nRemove-Item : Illegal characters in path.\r\nParameter name: path\r\nAt line:1 char:1\r\n+ Remove-Item \"HKCU:\\Software\\Classes\\``*\\shell\\\"\r\n+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n + CategoryInfo : NotSpecified: (:) [Remove-Item], ArgumentException\r\n + FullyQualifiedErrorId : System.ArgumentException,Microsoft.PowerShell.Commands.RemoveItemCommand\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-beta\r\nPSEdition Core\r\nGitCommitId v6.0.0-beta.6\r\nOS Microsoft Windows 10.0.16275\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","author":{"url":"https://github.com/jared-is-ray","@type":"Person","name":"jared-is-ray"},"datePublished":"2017-08-30T17:12:06.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/4704/PowerShell/issues/4704"}
| 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:46a1327f-b075-484b-6bbd-5554badde3dc |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9298:181B4D:B018F:F682F:6A577763 |
| html-safe-nonce | f3dde116945d2b61fc7ba9e5e0352d61eb296a682e1d5e0f79358e05843f4231 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5Mjk4OjE4MUI0RDpCMDE4RjpGNjgyRjo2QTU3Nzc2MyIsInZpc2l0b3JfaWQiOiI4MzA3NjY4NDQ5NzM3Nzk5NTIzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 145f5cdd0cfe084ae020e0dfc98e27be5d0bbb00828df7c54713d6e3c1ebba72 |
| hovercard-subject-tag | issue:254073012 |
| 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/4704/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8ac85f759a3997f788f65010c85e94a268b23b4f3f1b0a01da432b1938893ee3/PowerShell/PowerShell/issues/4704 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8ac85f759a3997f788f65010c85e94a268b23b4f3f1b0a01da432b1938893ee3/PowerShell/PowerShell/issues/4704 |
| og:image:alt | In Win10 (10.0.16275.1000) and beta6, I am unable to use powershell to modify registry keys that are named "*". Steps to reproduce Remove-Item "HKCU:\Software\Classes\*\shell\" # or try with escape... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jared-is-ray |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4e7a7296a3830877cf21a6ad2a972c9e618a48915e03966cf0c53eb08e5aad98 |
| 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 | c0ca805e53f128ba1f966be1d3ccd81d0d1959c7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width