How To Rename a File With PowerShell

in this blog post, I will show you how to rename a file with PowerShell.

Rename-item

In the following example I am renaming a file.

rename-Item .\2.keepalive.ps1 3.keepalive.ps1

This command works with PowerShell and PowerShell 7 also known as Core.


Posted

in

by