![]() |
Set-DtOption |
This cmdlet sets the value of the Double-Take server or job option for the specified server. For this cmdlet, the -ServiceHost could be your source or target server.
Set-DtOption [-Setting] <Hashtable> [-ServiceHost] <Server> [<CommonParameters>]
Set-DtOption [-Name] <String> [-IntValue] <Int64> [-ServiceHost] <Server> [<CommonParameters>]
Set-DtOption [-Name] <String> [-StringValue] <String> [-ServiceHost] <Server> [<CommonParameters>]
Set-DtOption [-Name] <String> [-MultiStringValue] <String[]> [-ServiceHost] <Server> [<CommonParameters>]
Required? |
true |
Position? |
2 |
Accept Pipeline Input? |
true (ByValue, ByPropertyName) |
Accept Wildcard Characters? |
false |
Required? |
true |
Position? |
2 |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
Required? |
true |
Position? |
named |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
Required? |
true |
Position? |
named |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
Required? |
true |
Position? |
named |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
Required? |
true |
Position? |
1 |
Accept Pipeline Input? |
true (ByPropertyName) |
Accept Wildcard Characters? |
false |
This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters. |
A server object is created for the server alpha using the domain\administrator and password credentials. It assigns the server object to the variable called DtServerObjectAlpha. Then the server settings MaxChecksumBlocks and MirrorChunkSize are set to 64 and 131072, respectively, on the server. The connections for the server object are then closed.
$DtServerObjectAlpha= New-DtServer -Name alpha -UserName domain\administrator -Password password
Set-DtOption -ServiceHost $DtServerObjectAlpha -Setting @{MaxChecksumBlocks=64; MirrorChunkSize=131072}
Disconnect-DtServer -ServiceHost $DtServerObjectAlpha
A server object is created for the server alpha using the domain\administrator and password credentials. It assigns the server object to the variable called DtServerObjectAlpha. Then it sets the MirrorChunkSize server setting to 64. The connections for the server object are then closed.
$DtServerObjectAlpha= New-DtServer -Name alpha -UserName domain\administrator -Password password
Set-DtOption -Servicehost $DtServerObjectAlpha -Name MirrorChunkSize -IntValue 64
Disconnect-DtServer -ServiceHost $DtServerObjectAlpha