Rename-OBVolume

Rename-OBVolume

Maps a backed up volume to its new name after the operating system has been reinstalled on the backed up server.

Syntax

Parameter Set: Default
Rename-OBVolume [-OldVolumeName] <String> [-NewVolumeName] <String> [ <CommonParameters>]

Detailed Description

The Rename-OBVolume cmdlet maps a backed up volume to its new name after the operating system has been reinstalled on the backed up server. . This cmdlet is useful in the scenario where the operating system is reinstalled and as a result the volume GUID of a backed up volume is changed. After this cmdlet has been run the backup policy of OldVolumeName would be applied to NewVolumeName.

Note: OldVolumeName and NewVolumeName can be same if the volume GUID has changed but the volume name has not changed.

Parameters

-NewVolumeName<String>

Identifies the name of the new volume.

Aliases

none

Required?

true

Position?

2

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-OldVolumeName<String>

Identifies the name of the old volume.

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

True (ByValue)

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

  • None

Outputs

The output type is the type of the objects that the cmdlet emits.

  • Microsoft.Internal.CloudBackup.Commands.OBVolume

Examples

EXAMPLE 1

This example maps E: to an older volume D:. Policy details such as files to included/exclude in backup for older volume D: would now be applied to E:

PS C:\> Rename-OBVolume D: E: