Update-DPMDiskStorage
Updates properties of a volume in the storage pool on a DPM server.
Syntax
Default (Default)
Update-DPMDiskStorage
[-Volume] <Volume>
[[-FriendlyName] <String>]
[[-DatasourceType] <VolumeTag[]>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
The Update-DPMDiskStorage cmdlet updates properties of a volume in the storage pool on a System Center - Data Protection Manager (DPM) server. The cmdlet can be used to update the friendly name and allowed data source types.
To get a list of all volumes in the DPM storage pool, use the Get-DPMDiskStorage cmdlet with the Volumes switch.
Examples
Example 1: Update volume properties of a volume in DPM storage pool
PS C:\>$volumes = Get-DPMDiskStorage -DPMServerName "TestingServer" -Volumes
PS C:\> Update-DPMDiskStorage -Volume $volumes[0] -FriendlyName "New Volume" -DatasourceType FileSystem
The first command uses the Get-DPMDiskStorage cmdlet to get the volumes already added to the storage pool of the DPM server named TestingServer. It stores them in the $volumes variable.
The second command updates the friendly name and allowed data source types for the first volume listed in the $volumes variable.
Parameters
-Confirm
Prompts you for confirmation before running the cmdlet.
Parameter properties
Type: | SwitchParameter |
Default value: | False |
Supports wildcards: | False |
DontShow: | False |
Aliases: | cf |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-DatasourceType
Specifies list of data source types that can be backed up on the current volume. The acceptable values for this parameter are:
- FileSystem
- Client
- SQL
- SharePoint
- Exchange
- SystemProtection
- HyperV
- VMware
- Other
- All
Parameter properties
Type: | VolumeTag[] |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | 3 |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-FriendlyName
Specifies the new friendly name for the current volume.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | 2 |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-Volume
Specifies the volume for which properties need to be changed.
Parameter properties
Type: | Volume |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | 1 |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Parameter properties
Type: | SwitchParameter |
Default value: | False |
Supports wildcards: | False |
DontShow: | False |
Aliases: | wi |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.