rename-item Verified for current stable LTS

Rename Item Command: Rename Directory Windows

Use for rename directory windows with Rename Item. Exact CLI syntax to rename directory windows using Rename Item.

When to use this: Use for rename directory windows with Rename Item.

Command Syntax

Rename-Item -Path "<path\to\directory>" -NewName "<new_directory_name>"

Live Command Builder

Final Command

Rename-Item -Path "<path\to\directory>" -NewName "<new_directory_name>"

Command Breakdown

-Path
Command Option
Tool-specific option used by this command invocation.
-NewName
Command Option
Tool-specific option used by this command invocation.

FAQ

Purpose: Exact syntax to rename directory windows using Rename Item.

Test path: Replace placeholders and run destructive commands in a disposable workspace first.

Flag behavior: Tool version, platform, and shell can change behavior.

Improve This Command

Suggest a correction, safer default, or version-specific note for this entry.

Related Operations

Back to Rename Item directory