Set-KeyManagementServer
This cmdlet configures the settings of the key management server.
Syntax
-KeyManagementServer
<KeyManagementServer[]>
[-Address <String>]
[-Credential <PSCredential>]
[-Password <SecureString>]
[-Port <Int32>]
[-ProxyAddress <String>]
[-ProxyPort <Int32>]
[-Server <VIServer[]>]
[-TrustKeyManagementServer <Boolean>]
[-Username <String>]
[CommonParameters]
[-Address <String>]
[-Credential <PSCredential>]
[-Password <SecureString>]
[-Port <Int32>]
[-ProxyAddress <String>]
[-ProxyPort <Int32>]
[-Server <VIServer[]>]
[-TrustKeyManagementServer <Boolean>]
[-Username <String>]
[CommonParameters]
Parameters
Required | Parameter Name | Type | Position | Features | Description |
---|---|---|---|---|---|
required |
|
KeyManagementServer[] | named |
|
Specifies the key management servers you want to configure. | optional |
|
String | named |
|
Specifies the new address of the key management server. | optional |
|
PSCredential | named |
|
Specifies a PSCredential object that contains credentials for authenticating with the key management server. | optional |
|
SecureString | named |
|
Specifies the new password you want to use for authenticating with the Key Management Interoperability Protocol server. If you want to unset the password, set the value to an empty string. | optional |
|
Int32 | named |
|
Specifies the new port number of the key management server. | optional |
|
String | named |
|
Specifies the new address of the proxy server. If you want to unset the address, set the value to an empty string. | optional |
|
Int32 | named |
|
Specifies the new port number of the proxy server. If you want to unset the port number, set the value to -1. | optional |
|
VIServer[] | named |
|
Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is provided or $null value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of Connect-VIServer. | optional |
|
Boolean | named |
|
Indicates whether the vCenter Server system can trust the key management server certificate. Revoking trust of the key management server is not supported. | optional |
|
String | named |
|
Specifies the new user name you want to use for authenticating with the Key Management Interoperability Protocol server. If you want to unset the user name, set the value to an empty string. |
Output
VMware.VimAutomation.Storage.Types.V1.Encryption.KeyManagementServer
Examples
Example 1
Set-KeyManagementServer -KeyManagementServer $kms -Address $newKmsAddress -Port $newKmsPort
Updates the $kms key management server with $newKmsAddress as the new key management server address and $newKmsPort as the new key management server port.
Example 2
Set-KeyManagementServer -KeyManagementServer $kms -Name 'NewName'
Renames the $kms key management server to 'NewName'.
Related Commands
KeyManagementServer
This cmdlet retrieves the key management servers registered on the vCenter Server system.
This cmdlet adds a key management server to a vCenter Server system.
This cmdlet configures the settings of the key management server.
This cmdlet removes the specified key management servers from the vCenter Server systems.
KeyProvider
This cmdlet retrieves all key providers from the vCenter Server system.
This cmdlet modifies the settings of the specified key provider.