Set-VBRCSVContainer
Short Description
Modifies a scope of computers listed in a CSV file.
Product Edition: Community, Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Set-VBRCSVContainer -Container <VBRCSVContainer> [-Path <String>] [-NetworkCredentials <CCredentials>] [-MasterCredentials <CCredentials>] [-UseCustomCredentials] [-CustomCredentials <VBRCSVCustomCredentials[]>] [<CommonParameters>] |
Detailed Description
This cmdlet modifies the VBRCSVContainer object. This object contains the scope of computers you want to add to a protection group.
Note |
|
To modify settings, specify new values for the necessary parameters. The cmdlet will overwrite the previous parameter values with new values. The parameters that you omit will remain unchanged. |
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
Container |
Specifies the scope of computers that are listed in a CSV file.
Accepts the |
True |
Named |
True (ByPropertyName, ByValue) |
|
|
CustomCredentials |
Specifies custom credentials for authenticating with associated computers.
Accepts the |
False |
Named |
True (ByPropertyName) |
|
|
MasterCredentials |
Specifies Master account credentials for authenticating with all computers listed in a CSV file.
For authenticating with computers that require different credentials, Veeam Backup & Replication uses custom credentials. If you want to use custom credentials for some computers, set the |
|
False |
Named |
True (ByPropertyName) |
|
NetworkCredentials |
Specifies the credentials you want to use for authenticating with the shared folder. The cmdlet will use these credentials if a CSV file is located on a file share. |
|
False |
Named |
True (ByPropertyName) |
|
Path |
Specifies the path to the CSV file. The cmdlet will import computers’ DNS names or IP addresses from this file. |
|
False |
Named |
True (ByPropertyName) |
|
UseCustomCredentials |
Defines that you want to use custom credentials for authenticating with some computers listed in a CSV file.
To specify custom credentials, use the |
|
False |
Named |
True (ByPropertyName) |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Output Object
Examples
Changing Master Account Credentials for Protection Group
This example shows how to change Master account credentials for a protection group.
|
$group = Get-VBRProtectionGroup -Name "Support PG" $csv = $group.Container $newcsv = Set-VBRCSVContainer -Container $csv -MasterCredentials "supporteast\dstones" Set-VBRProtectionGroup -ProtectionGroup $group -Container $newcsv |
Perform the following steps:
- Run the
Get-VBRProtectionGroupReturns protection groups. cmdlet. Specify theNameparameter value. Save the result to the$groupvariable. - Get the protection scope. Use the
Containerproperty of the$groupvariable. Save the result to the$csvvariable. - Run the
Set-VBRCSVContainercmdlet. Set the$csvvariable as theContainerparameter value. Specify theMasterCredentialsparameter value. Save the result to the$newcsvvariable. - Run the
Set-VBRProtectionGroupModifies protection groups. cmdlet. Set the$groupvariable as theProtectionGroupparameter value. Set the$newcsvvariable as theContainerparameter value.
Related Commands
Get-VBRProtectionGroupReturns protection groups.Set-VBRProtectionGroupModifies protection groups.