

The rename-item cmdlet supports only with providers that are being exposed. Its default value is false.It doesn’t accept pipeline characters as input and wild card characters are also not accepted. It just shows what will happen if the cmdlet is run. WhatIf: This doesn’t produce any output.Pipeline input is accepted whereas wild card characters are not considered. It denotes the path of the item to be renamed. It is used to return items to be the pipeline. PassThru: This doesn’t generate any input.It accepts pipeline input, but wild card characters are not accepted.


Replace operator must be used when multiple items are to be renamed. The cmdlet will understand whether a path or a file must be renamed. Only a name must be entered and not a path. -NewName: This denotes the new name of the item to which the item must be renamed.In case if the path contains escape characters, it must be enclosed within single quotation to inform PowerShell not to interpret as escape sequence. None of the characters are interpreted as wild cards. The value whatever is typed as the literal value. Literal Path: This denotes or represents the item or items path to be renamed.The security restrictions are still maintained even though force parameter is used.

Constant variables and aliases can’t also be renamed.
