Forum Discussion
AnthonyChan_5ming
Jul 24, 2023Copper Contributor
Change email domain in bulk via powershell
Previously I'm able to run this command to mass change email domain via powershell: ------------------------------------------------------------------------------------------------------ Import-CSV...
- Jul 25, 2023You can stop and close powershell, remove C:\Users\adm_acch006350\Documents\WindowsPowerShell\Modules\ExchangeOnlineManagement\2.0.5 and try to install it again using nstall-module ExchangeOnlineManagement
kevkelly
Jul 24, 2023MCT
As Harm_Veenstra mentions, first ensure that your Exchange Online PowerShell module is upto date:
Get-InstalledModule ExchangeOnlineManagement | Format-List Name,Version,InstalledLocation
Update-Module -Name ExchangeOnlineManagement
Next would be to check/confirm that the account you're using has the relevant Exchange RBAC permissions:
Get-ManagementRole -Cmdlet Set-Mailbox
Get-ManagementRoleAssignment -RoleAssignee <userIdentity>
- AnthonyChan_5mingJul 24, 2023Copper Contributorkevkelly
Which module should I connect to run Get-ManagementRole?
----------------------------------------------------------------------------------------------
Get-ManagementRole : The term 'Get-ManagementRole' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of
the name, or if a path was included, verify that the path is correct and try again.
-------------------------------------------------------------------------------------------------