question

KeithHampshire-3198 avatar image
0 Votes"
KeithHampshire-3198 asked

Block sign-in w/ Exchange online powershell

What is the command to "Block sign-in" on a user with Exchange online Powershell?

There is the GUI version of what I'm trying to accomplish.
119860-image.png


office-exchange-server-administration
image.png (14.9 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

michev avatar image
1 Vote"
michev answered KeithHampshire-3198 commented

None - this is an Azure AD operation, not Exchange one. You can use Set-MsolUser (from the MSOnline module) or Set-AzureADUser (from the Azure AD module): https://docs.microsoft.com/en-us/powershell/module/azuread/set-azureaduser?view=azureadps-2.0#parameters

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

That is what I was afraid of. We do not currently have Azure AD.

0 Votes 0 ·
michev avatar image michev KeithHampshire-3198 ·

If you are using Exchange Online/Office 365, a free Azure AD instance is included. You can run the cmdlets mentioned above by downloading the corresponding module and logging in as an admin.

0 Votes 0 ·