[pastacode lang=”markdown” manual=”%23%20Revoke%20tokens%20in%20Azure%20AD%2C%20existing%20application%20and%20browser%20windows%20with%20access%20token%20needs%20to%20be%20terminated%20to%20revoke%20the%20access%20token%0A%0AGet-AzureADUser%20-SearchString%20user%40domain.com%20%7C%20Revoke-AzureADUserAllRefreshToken%0A%0ASet-User%20-Identity%20user%40domain.com%20-AuthenticationPolicy%20%22Allow%20Basic%20Auth%20for%20ActiveSync%22%20-StsRefreshTokensValidFrom%20%24(%5BSystem.DateTime%5D%3A%3AUtcNow)%20%0A%0ASet-User%20-Identity%20user%40domain.com%20-AuthenticationPolicy%20%22Disable%20Basic%20Auth%22%20-StsRefreshTokensValidFrom%20%24(%5BSystem.DateTime%5D%3A%3AUtcNow)%20%0A%0A%20″ message=”” highlight=”” provider=”manual”/]