Clear-KdsCache
Clear-KdsCache
Clears the group key cache of the local computer.
Syntax
Parameter Set: Default
Clear-KdsCache [-CacheOwnerSid <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]
Detailed 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.
Parameters
-CacheOwnerSid<String>
Specifies the security identifier (SID) for the user account whose cache this cmdlet clears.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-Confirm
Prompts you for confirmation before running the cmdlet.
Required? |
false |
Position? |
named |
Default Value |
false |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Required? |
false |
Position? |
named |
Default Value |
false |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
<CommonParameters>
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Inputs
The input type is the type of the objects that you can pipe to the cmdlet.
None
This cmdlet accepts no input objects.
Outputs
The output type is the type of the objects that the cmdlet emits.
None
This cmdlet produces no output.
Examples
Example 1: Clear the group key cache
This example clears the group key cache of the local computer.
PS C:\> Clear-KdsCache
Example 2: Clear the group key cache of a specific user
This example clears the group key cache of the user with SID s-1-1-0.
PS C:\> Clear-KdsCache –CacheOwnerSid "s-1-1-0"