Top "Rename-item-cmdlet" questions

Rename an item (a folder or a file) using rename-item powershell cmdlet

PowerShell complaining about path, But path is valid

In the following code, when $client = XRS1 if (Test-Path C:\dbbackups\cm_$client-*.full.bak){ Rename-Item -path C:\dbbackups\cm_$…

powershell rename-item-cmdlet
In powershell, how can I use Rename-Item to output the old and new file names at the same time?

I'd like to select a list of files using Get-ChildItem piped to Rename-Item and have the output display text with …

powershell get-childitem rename-item-cmdlet
Rename-item thinks variable is a path

I'm trying to rename a file but powershell thinks my variable is a string and fails. Here is the script: $…

powershell rename rename-item-cmdlet
Cannot Bind Argument to Parameter 'NewName' because it is an empty string

Get-ChildItem -Name *.txt | Rename-Item -NewName { $_.name -replace '\.txt','.log' } I have 3 text files in my current path, I'm …

powershell powershell-2.0 rename-item-cmdlet
Powershell Remove Special Character(s) from Filenames

I am looking for a way to remove several special characters from filenames via a powershell script. My filenames look …

regex powershell special-characters character-replacement rename-item-cmdlet