Someone may ask, "What is the relationship between this and lync? "
It's related!
It does not matter. It does not matter!
I used to have a lync environment in at least two projects and had to reinstall Exchange Server 2013.
However, when I met students, I made some preparations and sent them out to help students learn!
When uninstalling Exchange Server 2013, You need to disable the mailboxes of several users. If you do not disable them, You Cannot uninstall them. The following describes how to disable these three users. For details, refer:
I. Disable-mailbox
This cmdlet can be used in Local Exchange Server 2013 and cloud-based services. Some parameters and settings may only apply to a specific environment.
You can use the disable-Mailbox cmdlet to disable the existing user's mailbox, inetorgperson object, or public folder mailbox, and delete the Active Directory attribute of this object from exchange. The user account associated with the mailbox will be retained in Active Directory, but will not be associated with the mailbox.
In this example, disable the user John Woods (whose alias is John) and delete all mailbox attributes from Active Directory.
Copy
Disable-Mailbox [email protected]
Ii. Remove-mailbox
This cmdlet can be used in Local Exchange Server 2013 and cloud-based services. Some parameters and settings may only apply to a specific environment.
Use the remove-Mailbox cmdlet to delete the user account associated with a specific mailbox in Active Directory, and process the associated disconnected mailbox according to the instructions of the specified parameter.
In this example, the email address of user John Rodman (John) is disconnected from the user account and the email address is deleted from Active Directory. During the deleted mailbox retention period configured for the mailbox database, the mailbox will remain in the exchange database.
Copy
Remove-Mailbox-identity contoso \ John
3. Disable-email-Common User
Get-mailbox
Disable-Mailbox I-X-cloud \ Administrator
Iv. Disable-email-Administrator
Get-mailbox
Disable-Mailbox I-X-cloud \ Administrator
5. Disable-email-discoverysearchmailbox
1) query-user
Get-Mailbox | select name
650) This. width = 650; "Title =" clip_image001 "style =" border-top: 0px; border-Right: 0px; Background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; border-left: 0px; padding-Right: 0px; "Border =" 0 "alt =" clip_image001 "src =" http://img1.51cto.com/attachment/201408/17/711418_1408276815qK96.png "Height =" 97 "/>
2) Delete-user
Disable-Mailbox-identity 'discoverysearchmailbox {D9-----------------------52 }'
650) This. width = 650; "Title =" clip_image003 "style =" border-top: 0px; border-Right: 0px; Background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; padding-Right: 0px; "Border =" 0 "alt =" clip_image003 "src =" http://img1.51cto.com/attachment/201408/17/711418_1408276816ijiK.jpg "Height =" 99 "/>
This article is from the IT-Standardization blog, please be sure to keep this source http://dynamic.blog.51cto.com/711418/1541341