Forum Discussion
entvita
Nov 01, 2023Copper Contributor
Unable to Execute Exchange Online PowerShell Commands for Role Management
Hi, I'm using online Microsoft Exchange PowerShell, trying to assign some roles via the command line as i was unable to do that via the Exchange interface, i kept getting unable to save changes er...
- Nov 01, 2023Well, you actually need to connect to Exchange Online first. I.e. run the Connect-ExchangeOnline cmdlet and provide the credentials of an admin user. More details here: https://learn.microsoft.com/en-us/powershell/exchange/connect-to-exchange-online-powershell?view=exchange-ps
VasilMichev
Nov 01, 2023MVP
Well, you actually need to connect to Exchange Online first. I.e. run the Connect-ExchangeOnline cmdlet and provide the credentials of an admin user. More details here: https://learn.microsoft.com/en-us/powershell/exchange/connect-to-exchange-online-powershell?view=exchange-ps