rename-item
Verified for current stable LTS
Rename Item Command: Rename And Move File Windows
Use for rename and move file windows with Rename Item. Exact CLI syntax to rename and move file windows using Rename Item.
When to use this: Use for rename and move file windows with Rename Item.
Command Syntax
Rename-Item -Path "<path\to\file>" -NewName "<path\to\new_file_name>" Rename-Item -Path "<path/to/file>" -NewName "<path/to/new_file_name>" Live Command Builder
Final Command
Rename-Item -Path "<path\to\file>" -NewName "<path\to\new_file_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 and move file 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
Rename Item Command: Force Rename File Windows
Rename-Item -Path "<path\to\file>" -NewName "<new_file_name>" -Force Rename Item Command: Prompt Confirmation Rename File Windows Rename-Item -Path "<path\to\file>" -NewName "<new_file_name>" -Confirm Rename Item Command: Rename Directory Windows Rename-Item -Path "<path\to\directory>" -NewName "<new_directory_name>" Rename Item Command: Rename File Windows Rename-Item -Path "<path\to\file>" -NewName "<new_file_name>" Get Acl Command: Get Acl Registry Key Windows Get-Acl -Path {HKLM:\System\CurrentControlSet\Control} | Format-List