• Facebook
  • Twitter
  • Youtube
  • LinedIn
  • RSS
  • Docs
  • Comparisons
  • Blogs
  • Download
  • Contact Us
Download
Show / Hide Table of Contents

Enable-NCacheSecurity

The Enable-NCacheSecurity PowerShell cmdlet enables server-level security on an NCache node by validating the provided administrative credentials against the configured LDAP or Active Directory provider, ensuring that only authorized NCache administrators can enable and manage secured caches. In addition to enforcing authentication and authorization for all cache operations, the cmdlet can optionally store encrypted credentials in the NCache service configuration, allowing caches configured for auto-start to initialize automatically during service startup or system reboot, making it especially useful for production environments that require secure, unattended cache availability.

  • Windows PowerShell
  • Linux CLI
Enable-NCacheSecurity -AdminCredentials -Server [-WriteCredentialsToServiceConfig] [-NoLogo]

Examples

  • This command enables NCache security on the server with the IP address 20.200.20.11. Before enabling security, it validates that John Smith has the necessary privileges on the server using credentials.
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 a server name where the NCache Service is running and a cache with the specified cache-name is registered. You can specify 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
-NoLogo <SwitchParameter> Suppresses display of the logo banner. False
enable-ncachesecurity -adminuserid -adminpassword -server [-writecredentialstoserviceconfig] [-nologo]

Examples

  • This command enables NCache security on the server with the IP address 20.200.20.11. Before enabling security, it validates that John Smith has the necessary privileges on the server using credentials.
enable-ncachesecurity -server 20.200.20.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 a server name where the NCache Service is running and a cache with the specified cache-name is registered. You can specify 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
-nologo <SwitchParameter> Suppresses display of the logo banner. False

Contact Us

PHONE

+1 214-619-2601   (US)

+44 20 7993 8327   (UK)

 
EMAIL

sales@alachisoft.com

support@alachisoft.com

NCache
  • 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 - . All rights reserved. NCache is a registered trademark of Diyatech Corp.
Back to top