Title: Move-Item fails while using a wildcard in destination · Issue #20521 · PowerShell/PowerShell · GitHub
Open Graph Title: Move-Item fails while using a wildcard in destination · Issue #20521 · PowerShell/PowerShell
X Title: Move-Item fails while using a wildcard in destination · Issue #20521 · 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/20521
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Move-Item fails while using a wildcard in destination ","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\nEncountered in a script I'd like to use. Easy way to reproduce is like:\r\n\r\ncd c:\\users\\my_name\r\n\r\n$null \u003e filename\r\n\r\nMove-Item .\\filename \"C:\\users\\my_name\\Deskto*\"\r\n\r\nError: Move-Item: Invalid name.\r\n\r\nIn Powershell 5.1 this command succeeds just fine\r\n\r\n\r\n\n\n### Expected behavior\n\n```console\nThe file is moved to c:\\users\\my_name\\Desktop\n```\n\n\n### Actual behavior\n\n```console\nError: Move-Item: Invalid name.\n```\n\n\n### Error details\n\n```console\nnone\n```\n\n\n### Environment data\n\n```powershell\nName Value\r\n---- -----\r\nPSVersion 7.3.5\n```\n\n\n### Visuals\n\n_No response_","author":{"url":"https://github.com/PietJankbal","@type":"Person","name":"PietJankbal"},"datePublished":"2023-10-19T07:42:42.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":11},"url":"https://github.com/20521/PowerShell/issues/20521"}
| 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:7a464360-77e0-bab1-096c-f65b3bfe44c7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C912:100A0C:306590:3FF3F4:6A5976F7 |
| html-safe-nonce | a73b0320675cb8dc99b4c10a188979b1e66a86248fa8aba02336e01cbd9fba48 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOTEyOjEwMEEwQzozMDY1OTA6M0ZGM0Y0OjZBNTk3NkY3IiwidmlzaXRvcl9pZCI6IjI0MjkzNzQxNzc0NjU2OTM5NDMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 65c6ba9dc8316be2b9d5f2698ec7740de60f0be3577d39106fd11e11b0bb449c |
| hovercard-subject-tag | issue:1951508956 |
| 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/20521/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3894d465c7317344d56a147fb84eafb2e2d5863b94da3edee23c734c5f604926/PowerShell/PowerShell/issues/20521 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3894d465c7317344d56a147fb84eafb2e2d5863b94da3edee23c734c5f604926/PowerShell/PowerShell/issues/20521 |
| 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 | PietJankbal |
| hostname | github.com |
| expected-hostname | github.com |
| None | a540949572872b935b393b36db38922db390ae71c859537d741b8f3eb7e545b5 |
| 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 | 624bb50a7497aa346bef8cc3743af408a9ea10ca |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width