How To Rename a File With PowerShell

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


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.

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.