Revokes a token from an Active Directory user.
Remove-SystoLockAssignment [-Identifier] <String[]> [-Address <ServiceAddress>] [-AuthType <NtdsAuthType>]
[-DomainController <String>] [-Timeout <Int32>] [-WhatIf] [-Confirm] [<CommonParameters>]
Remove-SystoLockAssignment [-User] <Object[]> [-Address <ServiceAddress>] [-AuthType <NtdsAuthType>]
[-DomainController <String>] [-Timeout <Int32>] [-WhatIf] [-Confirm] [<CommonParameters>]
Revokes a token from an Active Directory user.
In the case of by-user call all tokens assigned to the user are revoked.
All cmdlets interacting with SystoLock service have -Address and -Timeout parameters to adjust their behavior.
You can also set $systolockaddress and $systolocktimeout PowerShell variables or SLOCKADDRESS and SLOCKTIMEOUT environment variables which let you specify these parameters as defaults.
If no parameters or environment variables are specified, the timeout defaults to 3 seconds and the address is obtained from DNS for current domain and site.
Remove-SystoLockAssignment -Identifier GAKT000168DE
Revoke a single token.
Remove-SystoLockAssignment -Identifier GAKT000168DD, GAKT000168DE, GAKT000168DF
Revoke a group of tokens.
Remove-SystoLockAssignment -User 'CN=Alice,CN=Users,DC=company,DC=com'
Revoke all tokens from a user by user distinguished name.
Remove-SystoLockAssignment -User Alice
Revoke all tokens from a user by user name.
Remove-SystoLockAssignment -User 'company.com\Alice'
Revoke all tokens from a user by user SAM account name.
Remove-SystoLockAssignment -User 'Alice@company.com'
Revoke all tokens from a user by user principal name.
$guid = [System.Guid]("1612287D-FCE7-44C2-9825-2DE526E04C02")
Revoke all tokens from a user by user GUID.
$sid = [System.Security.Principal.SecurityIdentifier]("S-1-5-21-1454471165-1004335555-1606985555-5555")
Revoke all tokens from a user by user SID.
$user = Get-ADUser -Identity Alice
Revoke all tokens from a user by ADUser object.
Remove-SystoLockAssignment -User Alice, 'John@company.com', 'company.com\Paul'
Revoke all tokens from a group of users.
Get-ADUser -Filter {Surname -eq 'Smith'} | Remove-SystoLockAssignment
Pipeline processing.
Service address (optional).
You can pass an URL, a host name or a Service structure returned by previous Get-SystoLockService call.
Type: ServiceAddress
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Authentication method to use with domain controller (optional).
The acceptable values for this parameter are: Kerberos and Negotiate.
The default authentication method is Kerberos.
Possible values: Kerberos, Negotiate
Type: NtdsAuthType
Parameter Sets: (All)
Aliases:
Accepted values: Kerberos, Negotiate
Required: False
Position: Named
Default value: Kerberos
Accept pipeline input: False
Accept wildcard characters: False
Domain controller name (optional).
You can pass a domain name, a fully qualified domain name or an IP address of the domain controller.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Token identifier or URL.
Type: String[]
Parameter Sets: Identifier
Aliases:
Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
Timeout (range: 1 - 30 seconds, default: 3 seconds).
Type: Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
User name, distinguished name, principal name, SAM account name, GUID, SID or ADUser object array.
Type: Object[]
Parameter Sets: User
Aliases:
Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
Prompts you for confirmation before running the cmdlet.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Shows what would happen if the cmdlet runs.
The cmdlet is not run.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Token identifier or URL.
User name, distinguished name, principal name, SAM account name, GUID, SID or ADUser object array.
This operation requires your confirmation.
See <CommonParameters> manual (http://go.microsoft.com/fwlink/?LinkID=113216) for more details.
You can pass a user name, distinguished name, principal name, SAM account name, GUID, SID or ADUser object to associate the user with a token.