![]() ![]() If someone has a similar script implementation, you can share here. The requirement is to ensure that this script get-recipient | where | fl Name, RecipientType, EmailAddresses returns nothing for that domain. If($addressString -like -EmailAddresses $mailbox.EmailAddresses $address=$mailbox.EmailAddresses $addressString=$address.addressString Use this view to note the user names, and then change the user names so that the domain in question isnt part of the user name. ` $mailboxes=get-mailbox -resultsize unlimitedįor($i=($)-1 $i -ge 0 $i-) Step 1: Check whether user names contain the domain name NOTE You can also create a user view and then set the domain to the domain that youre trying to remove. Come back here, and create your new Office 365 accounts It might take some time after removing the domain before it's available here. ![]() This works fine, however it only targets user mailboxes email addresses but not the other objects mentioned above. Find the Users section, and edit or delete any users associated with. Have done dozen of research and i seem to find many script that only removes any email addresses associated to a specific domain pulled by this -EmailAddresses parameter when using get-mailbox and set-mailbox cmdlet. The ultimate goal is to ensure that the domain does not have any reference in any of office 365 objects. Nobody wants have to reset and distribute new passwords to dozens or. The objects include office 365 groups, user email addresses, distribution lists, dynamic distribution lists, resources, shared mailboxes and user mailbox. But removing SSO can be perilous too, as minimizing the impact to the users is critical. I'm working on a PowerShell script to bulk remove any reference to a specific domain suffix in office 365 objects. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |