Enable-NCacheSecurity - PowerShell Cmdlet
This PowerShell Cmdlet enables NCache security on a server by verifying the provided admin credentials. These credentials must belong to the NCache admin configured on the node. Additionally, the cmdlet can optionally store encrypted credentials in the service configuration, allowing the service to start caches configured for auto-start during service startup.
Enable-NCacheSecurity [-AdminCredentials] [-Server] [-WriteToServiceConfig]
Examples of Enable-NCacheSecurity
- This PowerShell Cmdlet enables NCache security on the server with the IP address 20.200.20.11. Before enabling security, the PowerShell Cmdlet validates that John Smith has the necessary privileges on the server.
Enable-NCacheSecurity -Server 20.200.20.11 -AdminCredentials(Get-Credential john_smith)
- This command enables NCache security on the server with the IP address 20.200.20.11. Before enabling security, the command validates whether John Smith has the necessary privileges on the server. Additionally, the
-WriteCredentialsToServiceConfig
switch stores the provided credentials in an encrypted form within the service configuration. These stored credentials will be used to facilitate the auto-startup of configured caches with the associated credentials.
Enable-NCacheSecurity -Server 20.200.20.11 -AdminCredentials(Get-Credential john_smith) -WriteCredentialsToServiceConfig
Properties
Note
The parameters with asterisk (*) on their names are the required parameters and the rest are optional.
Parameters | Data Types | Description | Default Value |
---|---|---|---|
-AdminCredentials* |
<pscredential> |
Specifies the credentials of an LDAP user with administrative rights on the given server. | - |
-Server* |
<String> |
Specifies the IP addresses of the servers where security should be enabled. This parameter can accept multiple IP addresses, allowing you to enable security on multiple servers simultaneously. | - |
-WriteToServiceConfig |
<SwitchParameter> |
Specifies whether to write to service configurations. | False |