Contact Info

Crumbtrail

ActiveXperts.com » Administration » Powershell » Powershell 3.0 » Rename-Item

Rename-Item - Powershell 3.0 CmdLet

ActiveXperts Network Monitor ships with integrated Powershell scripts to monitor complex network. The scripts run out of the box
Download the ActiveXperts Network Monitor FREE version now »

Rename-Item

Short description
Renames an item in a Windows PowerShell provider namespace.

Syntax
Rename-Item [-Path] <String> [-NewName] <String> [-Credential <PSCredential>] [-Force] [-PassThru] [-Confirm] [-WhatIf]
 [-UseTransaction [<SwitchParameter>]] [<CommonParameters>]
Rename-Item [-NewName] <String> [-Credential <PSCredential>] [-Force] [-PassThru] -LiteralPath <String> [-Confirm] [-Wh
atIf] [-UseTransaction [<SwitchParameter>]] [<CommonParameters>]





Description
The Rename-Item cmdlet changes the name of a specified item. This cmdlet does not affect the content of the item being 
renamed.


You cannot use Rename-Item to move an item, such as by specifying a path along with the new name. To move and rename an
 item, use the Move-Item cmdlet.