• Products
  • Solutions
  • Customers
  • Resources
  • Company
  • Pricing
  • Download
Try Playground
  • Security
  • Remove-NCacheUserOrGroup
Show / Hide Table of Contents
  • Command-Line Interface
  • Cmdlets in Different Editions
  • PowerShell on Windows
    • Setting Up PowerShell Environment
    • Install PowerShell without NCache Installation
  • Install-NCacheModule
  • Client Management
    • Add-ClientNode
    • Remove-ClientNode
    • Add-ClientNodeSecurity
  • Cache Management
    • New-Cache
    • Start-Cache
    • Stop-Cache
    • Set-CacheConfiguration
    • Export-CacheData
    • Export-CacheKeys
    • Export-CacheConfiguration
    • Get-CacheCount
    • Clear-Cache
    • Remove-Cache
    • Set-NCServiceConfigSetting
  • Client Cache
    • New-ClientCache
    • Add-ClientCacheRefDatatype
    • Remove-ClientCacheRefDatatype
    • Remove-ClientCache
  • Node Management
    • Add-Node
    • Remove-Node
  • Query Index
    • Add-QueryIndex
    • Remove-QueryIndex
  • Loader & Refresher
    • Add-LoaderDataSet
    • Invoke-RefresherDataset
    • Remove-LoaderDataSet
    • Add-StartupLoader
    • Remove-StartupLoader
  • Data Source Providers
    • Add-BackingSource
    • Remove-BackingSource
  • Custom Dependency
    • Add-CustomDependency
    • Remove-CustomDependency
  • Pub/Sub Messaging
    • Get-Topics
  • Bridge
    • New-Bridge
    • Remove-Bridge
    • Add-BridgeNode
    • Remove-BridgeNode
    • Add-BridgeCache
    • Remove-BridgeCache
    • Start-Bridge
    • Stop-Bridge
    • Set-BridgeCacheMode
    • Start-BridgeStateTransfer
  • Mapreduce
    • Add-MapReduce
  • Compact Serialization
    • Add-CompactType
    • Remove-CompactType
    • Add-PortableType
    • Remove-PortableType
  • Security
    • Add-NCacheUserOrGroup
    • Remove-NCacheUserOrGroup
    • Enable-NCacheSecurity
    • Disable-NCacheSecurity
    • Enable-NCacheTLS
    • Disable-NCacheTLS
    • Enable-NCEncryption
    • Disable-NCEncryption
  • Data Persistence
    • Suspend-NCacheDataPersistence
    • Resume-NCacheDataPersistence
  • Monitoring
    • Get-Caches
    • Get-CacheLogs
    • Get-CacheLogsList
    • Get-ConnectedClients
    • Get-CacheClientStatistics
    • Get-CacheServerStatistics
    • Add-TestData
    • Test-Stress
    • Get-ClusterHealth
    • New-MemoryDump
    • Get-MemoryDumpList
    • Send-MemoryDump
    • Remove-MemoryDump
    • Measure-CachePerformance
    • Invoke-ServerLogger
    • Import-CacheData
  • Management Center
    • Start-NCacheManagementCenter
    • Stop-NCacheManagementCenter
    • Set-CacheServerPublicIP
  • NCache Playground
    • Start-NCachePlaygroundProcess
    • Stop-NCachePlaygroundProcess
  • NCache Registration
    • Register-NCacheEvaluation
    • Register-NCache
    • Get-NCacheVersion
    • Unregister-NCache

Remove-NCacheUserOrGroup

This PowerShell Cmdlet removes a user or group from the NCache security configuration. It allows you to specify the server, user or group name, access level, cache name (if applicable), administrative credentials, and disable security. The cmdlet verifies the user's credentials, evaluates the access level, and then removes the specified user or group as required.

  • Windows PowerShell
  • Linux CLI
Remove-NCacheUserOrGroup [-AccessLevel] [-CacheName] [-Server] -AdminCredentials [-UserOrGroupName] [-UserOrGroupDN] [-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 -AdminCredentials(Get-Credential john_smith) -UserOrGroupName john_smith -DisableSecurity 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 -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 name 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. -
-UserOrGroupDN* <String> Specifies the Distinguished Name (DN) of the user or group being added. This DN uniquely identifies the user or group in the LDAP directory. -
-DomainController* <String> Specifies the IP address or name of the server on which the domain controller is hosted. -
-DomainControllerPort <Integer> 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] [-userorgroupdn] [-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 pass123 -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 pass123 -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 pass123 -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 name 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. -
-userorgroupdn* <String> Specifies the Distinguished Name (DN) of the user or group being added. This DN uniquely identifies the user or group in the LDAP directory. -
-domaincontroller* <String> Specifies the IP address or name of the server on which the domain controller is hosted. -
-domaincontrollerport <Integer> 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
  • 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