Clear-KdsCache
Clears the group key cache of the local computer.
Syntax
Default (Default)
Clear-KdsCache
[-CacheOwnerSid <String>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
The Clear-KdsCache cmdlet clears the group key cache of the local computer.
The local computer can be either a domain controller running the Microsoft Group Key Distribution Service (KdsSvc) or a client of the Microsoft Group KdsSvc.
Examples
Example 1: Clear the group key cache
PS C:\> Clear-KdsCache
This command clears the group key cache of the local computer.
Example 2: Clear the group key cache of a specific user
PS C:\> Clear-KdsCache -CacheOwnerSid "s-1-1-0"
This command clears the group key cache of the user with SID s-1-1-0.
Parameters
-CacheOwnerSid
Specifies the security identifier (SID) for the user account whose cache this cmdlet clears.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-Confirm
Prompts you for confirmation before running the cmdlet.
Parameter properties
Type: | SwitchParameter |
Default value: | False |
Supports wildcards: | False |
DontShow: | False |
Aliases: | cf |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Parameter properties
Type: | SwitchParameter |
Default value: | False |
Supports wildcards: | False |
DontShow: | False |
Aliases: | wi |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Inputs
None
This cmdlet accepts no input objects.
Outputs
None
This cmdlet produces no output.