How to access Office365/Azure using powershell without an Azure subscription

Tom Vernier 0 Reputation points
2025-06-19T05:48:42.25+00:00

Hi,

We currently have office365 licenses and sometimes a new of ours gets a log in failure loop, eg. User sign-ins (non-interactive) Sign In error code : 50173.

The solution is to run "Revoke-AzureADUserAllRefreshToken -ObjectId xxxx-xxx-xxx-xx ", as listed here - https://learn.microsoft.com/en-us/answers/questions/1609934/user-sign-ins-(non-interactive)-sign-in-error-code, however due to not having an Azure license, im unable to connect to our instance to run the single cmd.

Has anyone run into this issue?
It doesnt seem that refreshing auth tokens from either

Windows for business Windows Server User experience PowerShell
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.