So, I've read a lot about the Square Bracket [] problems with renaming a file with Powershell. Most of these post talked about removing the brackets. I have a need to keep the brackets, and just remove the file extension .crypted(CryptoLocker). There are 400,000+ files and 172,000+ folders. I tried the Move-Item cmdlet...
Get-ChildItem c:\temp *.crypted | Move-Item -LiteralPath {$_.FullName.Replace(".crypted", "")}
I get an error Move-Item : Cannot move item because the item at 'C:\temp\Rule [1].txt' does not exist
As you might be able to see the new path is correct, but it says it doesn't exist. I'm stumped. Any help would be greatly appreciated.