Rename-OBVolume

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

Syntax

Rename-OBVolume
      [-OldVolumeName] <String>
      [-NewVolumeName] <String>

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.

To use Microsoft Azure Backup cmdlets, the user needs to be an administrator on the protected machine.

Examples

EXAMPLE 1

Rename-OBVolume D:\ E:\

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:

Parameters

-NewVolumeName

Identifies the name of the new volume.

Type:String
Position:2
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-OldVolumeName

Identifies the name of the old volume.

Type:String
Position:1
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

Inputs

None

Outputs

Microsoft.Internal.CloudBackup.Commands.OBVolume