Try Playground
Show / Hide Table of Contents

Remove-NCacheUserOrGroup - PowerShell Cmdlet

This PowerShell Cmdlet deletes a user or a group from a list of authorized NCache security configuration.

Note

This feature is only available in NCache Enterprise.

  • Windows PowerShell
  • Linux CLI
Remove-NCacheUserOrGroup [-AccessLevel] [-CacheName] [-Server] -AdminCredentials [-UserOrGroupName] [-DomainController] [-DomainControllerPort] [-SecondaryDomainController] [-SecondaryDomainControllerPort] [-DisableSecurity]

Examples of Remove-NCacheUserOrGroup - PowerShell Cmdlet

  • This PowerShell Cmdlet removes the administrator user John Smith from the NCache server with the IP address 20.200.20.11. Upon successful removal of the user, NCache security is also disabled for the server.
Remove-NCacheUserOrGroup -Server 20.200.20.11 -AccessLevel Admin -AdminCredentials(Get-Credential john_smith) -UserOrGroupName john_smith -DisableSecurity Yes
  • This PowerShell Cmdlet removes the user John Smith from the demoCache cache hosted on the server with the IP address 20.200.20.11.
Remove-NCacheUserOrGroup -CacheName demoCache -Server 20.200.20.11 -AccessLevel Cache -AdminCredentials(Get-Credential john_smith) -UserOrGroupName john_smith
  • This command removes the group dev from the demoCache cache hosted on the server with the IP address 20.200.20.11. Upon successful removal of the group, NCache security is also disabled for the server.
Remove-NCacheUserOrGroup -CacheName demoCache -Server 20.200.20.11 -AccessLevel Cache -AdminCredentials(Get-Credential john_smith) -UserOrGroupName dev -DisableSecurity Yes

Properties

Note

The parameters with asterisk (*) on their names are the required parameters and the rest are optional.

Parameters     Data Types Description Default Value
-AccessLevel* <String> Specifies whether the user or group being removed is a cache user or an admin user. -
-CacheName <String> Specifies the name of the cache for which the user or group is being added. This parameter is required when the access level is set to "Cache". -
-Server* <String> Specifies the IP address of the NCache server from which the user or group is being removed. -
-AdminCredentials* <pscredential> Specifies the credentials of an LDAP user with administrative rights on the given server. -
-UserOrGroupName* <String> Specifies the name of the user or group being added. -
-DomainController* <String> Specifies the IP address or name of the server on which the domain controller is hosted. -
-DomainControllerPort <String> Specifies the port on which the domain controller is listening. 389
-SecondaryDomainController <String> Specifies the IP address or name of the server on which the secondary domain controller is hosted. -
-SecondaryDomainControllerPort <Integer> Specifies the port on which the secondary domain controller is listening. 389
-DisableSecurity <SwitchParameter> Specifies whether to disable security after successfully removing the user or group. Valid values are "Yes" or "No". False
remove-ncacheuserorgroup [-accesslevel] [-cachename] [-server] -adminuserid -adminpassword [-userorgroupname] [-domaincontroller] [-domaincontrollerport] [-secondarydomaincontroller] [-secondarydomaincontrollerport] [-disablesecurity]

Examples of Remove-NCacheUserOrGroup

  • This command removes the administrator user John Smith from the NCache server with the IP address 20.200.20.11. Upon successful removal of the user, NCache security is also disabled for the server.
remove-ncacheuserorgroup -server 20.200.20.11 -accesslevel Admin -adminuserid john_smith -adminpassword pass12345 -userorgroupname john_smith -disable-security Yes
  • This command removes the user John Smith from the demoCache cache hosted on the server with the IP address 20.200.20.11.
remove-ncacheuserorgroup -cachename demoCache -server 20.200.20.11 -accesslevel Cache -adminuserid john_smith -adminpassword pass12345 -userorgroupname john_smith
  • This command removes the group dev from the demoCache cache hosted on the server with the IP address 20.200.20.11. Upon successful removal of the group, NCache security is also disabled for the server.
remove-ncacheuserorgroup -cachename demoCache -server 20.200.20.11 -accesslevel Cache -adminuserid john_smith -adminpassword pass12345 -userorgroupname dev -disablesecurity Yes

Properties

Note

The parameters with asterisk (*) on their names are the required parameters and the rest are optional.

Parameters Data Types Description Default Value
-accesslevel* <String> Specifies whether the user or group being removed is a cache user or an admin user. -
-cachename <String> Specifies the name of the cache for which the user or group is being added. This parameter is required when the access level is set to "Cache". -
-server* <String> Specifies the IP address of the NCache server from which the user or group is being removed. -
-adminuserid* <String> Specifies the credentials of an LDAP user with administrative rights on the given server. -
-adminpassword* <String> Specifies the password of an LDAP user with administrative rights on the given server. This is used for authentication and authorization to perform the operation. -
-userorgroupname* <String> Specifies the name of the user or group being added. -
-domaincontroller* <String> Specifies the IP address or name of the server on which the domain controller is hosted. -
-domaincontrollerport <String> Specifies the port on which the domain controller is listening. 389
-secondarydomaincontroller <String> Specifies the IP address or name of the server on which the secondary domain controller is hosted. -
-secondarydomaincontrollerport <Integer> Specifies the port on which the secondary domain controller is listening. 389
-disablesecurity <SwitchParameter> Specifies whether to disable security after successfully removing the user or group. Valid values are "Yes" or "No". False
In This Article
  • Examples of Remove-NCacheUserOrGroup - PowerShell Cmdlet
  • Properties
  • Examples of Remove-NCacheUserOrGroup
  • 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