Changes server credentials
Syntax
Set-DtServerCredential -Input <Server> -Credential <PSCredential> [<CommonParameters>]
Detailed Description
This cmdlet changes the credentials associated with the server object that has already been created using the New-DtServer cmdlet.
Parameters
Name | Type | Description | Required | Pipeline Input |
---|---|---|---|---|
Input | String or Server |
Specify the name or IP address of the server, cluster, or cluster node.
|
true | false |
Credential | PSCredential |
Specify the credential object returned from the Windows PowerShell Get-Credential cmdlet. This password will not be visible because Windows stores an encrypted password. See Hiding your password in a PowerShell script for basic details on using this cmdlet. See your Windows PowerShell documentation for detailed instructions. |
true | false |
Outputs
Examples
$DtCredentialEncrypted = Get-Credential Set-DtServerCredential -Input alpha -Credential $DtCredential |
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 update the current credentials on the server alpha.