> ## Content Index
> Fetch the complete content index at: https://www.filipkonopik.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# PowerShell: Rename a Folder
- URL: https://www.filipkonopik.com/powershell-rename-a-folder/
- Published: 2026-07-20T10:54:52.000Z
- Updated: 2026-08-06T05:28:42.000Z
- Author: Filip Konopík
- Tags: Files & Folders

Need to rename a folder - fixing a typo, reorganizing a directory structure, or renaming as part of a script? This one-liner renames it directly from the terminal.

Prerequisites:

- Privileges: None
- Module: Built-in, no import needed

Quick Command:

```PowerShell
Rename-Item -Path "C:\OldFolderName" -NewName "NewFolderName"
```

📦

****Want all of them at once?**  
Get every free one-liner from this blog in a single downloadable bundle organized by category, each with full comment-based help. No more copy-pasting one at a time.

[Get the Complete Bundle for $39](https://gum.co/u/oczvkqdc?ref=filipkonopik.com)

How It Works:

- Rename-Item renames the item at the specified path - it works on files and folders alike.
- \-Path "C:\\OldFolderName" points to the folder you want to rename - replace this with whatever path you actually want.
- \-NewName "NewFolderName" sets the new name for the folder - this is just the name itself, not a full path.