Created
July 17, 2019 23:10
-
-
Save tostka/81023711d642c5167e86d55b5da3a014 to your computer and use it in GitHub Desktop.
Clear ADUser mail-attributes on-prem
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# note -whatif needs to be removed to execute | |
set-aduser -Identity $adu.samaccountname -clear msExchMailboxGuid, msexchrecipientdisplaytype, msexchrecipienttypedetails -whatif; | |
# confirm attributes cleared | |
get-aduser -Identity $adu.samaccountname -prop * | format-list msExchMailboxGuid, msexchrecipientdisplaytype, msexchrecipienttypedetails ; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment