PS Exchange – Contacts

get-mailcontact

Name                      Alias                                          RecipientType
----                      -----                                          -------------
Sam K. Tobias             stobias                                        MailContact


New-MailContact -FirstName "Jenny" -LastName "Cobolt" -Name "Jenny Cobolt" -ExternalEmailAddress jc@cobo
lt.com

Name                      Alias                                          RecipientType
----                      -----                                          -------------
Jenny Cobolt              JennyCobolt                                    MailContact


get-mailcontact

Name                      Alias                                          RecipientType
----                      -----                                          -------------
Sam K. Tobias             stobias                                        MailContact
Jenny Cobolt              JennyCobolt                                    MailContact

PS Exchange – Room Mailboxes

get-mailbox | where {$_.ResourceType -eq "Room" }

Name                      Alias                ServerName       ProhibitSendQuota
----                      -----                ----------       -----------------
Executive  Conference ... NYConfRoom           exchange01       Unlimited


New-Mailbox -Database DB01 -Name "ConferenceRoomMadrid" -DisplayName "Conference Room - Madrid" -Room

Name                      Alias                ServerName       ProhibitSendQuota
----                      -----                ----------       -----------------
ConferenceRoomMadrid      ConferenceRoomMadrid exchange01       Unlimited


get-mailbox | where {$_.ResourceType -eq "Room" }

Name                      Alias                ServerName       ProhibitSendQuota
----                      -----                ----------       -----------------
Executive  Conference ... NYConfRoom           exchange01       Unlimited
ConferenceRoomMadrid      ConferenceRoomMadrid exchange01       Unlimited

PS Exchange – Equipement Mailbox

Get-Mailbox | where {$_.ResourceType -eq "Equipment"}

Name Alias ServerName ProhibitSendQuota
---- ----- ---------- -----------------
Madrid Car MadridCar exchange01 Unlimited


New-Mailbox -Database DB01 -Name "MadridProjector" -DisplayName "Projector - Madrid" -Equipment

Name Alias ServerName ProhibitSendQuota
---- ----- ---------- -----------------
MadridProjector MadridProjector exchange01 Unlimited


Get-Mailbox | where {$_.ResourceType -eq "Equipment"}

Name            Alias           ServerName ProhibitSendQuota
----            -----           ---------- -----------------
Madrid Car      MadridCar       exchange01 Unlimited
MadridProjector MadridProjector exchange01 Unlimited

PS Exchange – Remove Default DB

1. Move all mailboxes off the database:

get-mailbox -database delete01 | New-MoveRequest -TargetDatabase db01

DisplayName StatusDetail TotalMailboxSize TotalArchiveSize PercentComplete
----------- ------------ ---------------- ---------------- ---------------
Administrator Queued 112.3 KB (114,985 bytes) 0
Discovery Search Mailbox Queued 4.922 KB (5,040 bytes) 0
Journal Mail Queued 2.237 MB (2,345,892 by... 0

2. Move any existing Arbitration DBs:

get-mailbox -Database delete01 -Arbitration | New-MoveRequest -TargetDatabase db02

DisplayName StatusDetail TotalMailboxSize TotalArchiveSize PercentComplete
----------- ------------ ---------------- ---------------- ---------------
Microsoft Exchange App... Queued 10.13 KB (10,376 bytes) 0
Microsoft Exchange Queued 380.6 KB (389,752 bytes) 0
Microsoft Exchange Queued 412.5 KB (422,405 bytes) 0
Microsoft Exchange Mig... Queued 25.93 KB (26,548 bytes) 0
Microsoft Exchange Fed... Queued 5.125 KB (5,248 bytes) 0

3 Check move progress:

get-moverequest

DisplayName Status TargetDatabase
----------- ------ --------------
Microsoft Exchange Approval Assistant Queued DB02
Microsoft Exchange Queued DB02
Microsoft Exchange Queued DB02
Microsoft Exchange Migration Queued DB02
Microsoft Exchange Federation Mailbox Queued DB02

4. Once completed remove the DB:

Remove-MailboxDatabase delete01

Confirm
Are you sure you want to perform this action?
Removing mailbox database "delete01".
[Y] Yes [A] Yes to All [N] No [L] No to All [?] Help (default is "Y"): y
WARNING: Failed to remove monitoring mailbox object of database "Delete01". Exception: Active Directory operation failed on 2012r2_01.domain.local. This error is not retriable. Additional information: Access is denied.
Active directory response: 00000005: SecErr: DSID-03152501, problem 4003 (INSUFF_ACCESS_RIGHTS), data 0.
WARNING: The specified database has been removed. You must remove the database file located in C:\Program Files\Microsoft\Exchange Server\V15\Mailbox\Mailbox Database 0709579603\Mailbox Database 0709579603.edb from your
computer manually if it exists. Specified database: Delete01