Try Playground
Show / Hide Table of Contents

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.

  • Windows PowerShell
  • Linux CLI
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
enable-ncachesecurity [-adminuserid] [-adminpassword] [-server] [-writecredentialstoserviceconfig]

Examples of Enable-NCacheSecurity

  • This command enables NCache security on the server with the IP address 20.200.20.11. Before enabling security, the command validates that jJohn Smith has the necessary privileges on the server.
enable-ncachesecurity -server 20.200.21.11 -adminuserid john_smith -adminpassword pass123
  • 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 -adminuserid john_smith -adminpassword pass123 -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
-adminuserid* <String> Specifies the user ID of an LDAP user with administrative rights on the given server. These credentials should belong to a user with the appropriate permissions at the node. -
-adminpassword* <String> Specifies the password of an LDAP user with administrative rights on the given server. These credentials should belong to a user with the appropriate permissions at the node. -
-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. -
-writecredentialstoserviceconfig <SwitchParameter> Specifies whether to write to service configurations. False
In This Article
  • Examples of Enable-NCacheSecurity
  • Properties
  • Examples of Enable-NCacheSecurity
  • Properties

Contact Us

PHONE

+1 (214) 764-6933   (US)

+44 20 7993 8327   (UK)

 
EMAIL

sales@alachisoft.com

support@alachisoft.com

NCache
  • NCache Enterprise
  • NCache Professional
  • Edition Comparison
  • NCache Architecture
  • Benchmarks
Download
Pricing
Try Playground

Deployments
  • Cloud (SaaS & Software)
  • On-Premises
  • Kubernetes
  • Docker
Technical Use Cases
  • ASP.NET Sessions
  • ASP.NET Core Sessions
  • Pub/Sub Messaging
  • Real-Time ASP.NET SignalR
  • Internet of Things (IoT)
  • NoSQL Database
  • Stream Processing
  • Microservices
Resources
  • Magazine Articles
  • Third-Party Articles
  • Articles
  • Videos
  • Whitepapers
  • Shows
  • Talks
  • Blogs
  • Docs
Customer Case Studies
  • Testimonials
  • Customers
Support
  • Schedule a Demo
  • Forum (Google Groups)
  • Tips
Company
  • Leadership
  • Partners
  • News
  • Events
  • Careers
Contact Us

  • EnglishChinese (Simplified)FrenchGermanItalianJapaneseKoreanPortugueseSpanish

  • Contact Us
  •  
  • Sitemap
  •  
  • Terms of Use
  •  
  • Privacy Policy
© Copyright Alachisoft 2002 - 2025. All rights reserved. NCache is a registered trademark of Diyatech Corp.
Back to top