Closed
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 reproduce
Encountered in a script I'd like to use. Easy way to reproduce is like:
cd c:\users\my_name
$null > filename
Move-Item .\filename "C:\users\my_name\Deskto*"
Error: Move-Item: Invalid name.
In Powershell 5.1 this command succeeds just fine
Expected behavior
The file is moved to c:\users\my_name\Desktop
Actual behavior
Error: Move-Item: Invalid name.
Error details
none
Environment data
Name Value
---- -----
PSVersion 7.3.5
Visuals
No response