![]() |
New-DtUvraServer |
This cmdlet creates a server object with specific credentials associated with it. This cmdlet is specific to the full server to ESX appliance job type. The server object may be one of the following types of servers: Double-Take server, virtual recovery appliance, or VMware host. The object is used to communicate with the Double-Take Management Service.
New-DtUvraServer [-UserName] <String> [-Password] <String> [-Port] <Int32> [-Name] <String> [-Role] <String> [<CommonParameters>]
New-DtUvraServer [-Credential] <PSCredential> [-Port] <Int32> [-Name] <String> [-Role] <String> [<CommonParameters>]
Required? |
false |
Position? |
named |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
Required? |
true |
Position? |
1 |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
Required? |
false |
Position? |
2 |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
Required? |
false |
Position? |
3 |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
Required? |
true |
Position? |
named |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
Required? |
false |
Position? |
named |
Accept Pipeline Input? |
false |
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 port 6325 and the domain\administrator and password credentials. It assigns the server object to the variable called DtServerObject. The connections for the server object are then closed.
$DtServerObjectAlpha= New-DtUvraServer -Name alpha -UserName domain\administrator -Password password -Port 6325
Disconnect-DtServer -ServiceHost $DtServerObjectAlpha
User credentials are stored in a variable called $DtCredential. The script will prompt you to supply the username and password and the credentials will be encrypted. Then the stored credentials are used to create a new server object for the server alpha using port 6325. It assigns the server object to the variable called DtServerObject. The connections for the server object are then closed.
$DtCredentialEncrypted = Get-Credential
$DtServerObjectAlpha = New-DtUvraServer -Name alpha -Credential $DtCredential -Port 6325
Disconnect-DtServer -ServiceHost $DtServerObjectAlpha