![]() |
Set-DtServerCredential |
This cmdlet changes the credentials associated with the server object that has already been created using the New-DtServer cmdlet.
Set-DtServerCredential [-Input] <Server> [-Credential] <PSCredential> [<CommonParameters>]
Required? |
true |
Position? |
named |
Accept Pipeline Input? |
true (ByValue) |
Accept Wildcard Characters? |
false |
Required? |
true |
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. |
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.
$DtCredentialEncrypted = Get-Credential
Set-DtServerCredential -Input alpha -Credential $DtCredential