TechShizz | All posts tagged 'Exchange 2010'

Creating & Configuring Mailboxes

Creating

 

Simple - Right click Mailboxes under Recipients and click new mailbox.

 

PowerShell

 

New-MailboxDatabase -Name "MyMailboxDatabase" –Server VAN-EX1 –EdbFilePath C:\MyDatabaseFiles\MyMailboxDatabase.edb -LogFolderPath D:\MyDatabaseFiles\ LogFolder

 

 

Configuring

 

The GUI is self explanatory, but EMS commands exist to configure the Database.

 

Settings Limits

 

Setting deleted items retention:

 

Set-MailboxDatabase -Identity "MyMailboxDatabase" -DeletedItemRetention 14.00:00:00

 

Setting maintenance schedule:

 

Set-MailboxDatabase -Identity "MyMailboxDatabase" -MaintenanceSchedule "Sun.10:30 PMMon.1:30 AM" 


Import/Export Mailboxes/Archiving

  • It is possible to export only one mailbox at a time, though mailboxes can be exported Sequentially. When you use Export-Mailbox, both the source mailbox and the destination mailbox are in the same Active Directory forest.
  •  Importing and exporting data requires a 64-bit computer that has both Exchange Server 2010 management tools installed and the 64-bit Microsoft Outlook 2010 client installed.
  • Import-Mailbox cannot be used to import data to a mailbox hosted on previous Versions of Exchange Server.
  • It is not possible to import mailbox or PST data to a public folder or a public folder database.

 

You can perform a selective export using the RecipientKeywords, SenderKeywords,

SubjectKeyworks, StartDate, and EndDate parameters. When you use the Export-Mailbox

cmdlet with the DeleteContent parameter but do not specify a target mailbox, you are able to

delete specific messages in targeted mailboxes. This allows you to selectively delete messages

across a number of targeted mailboxes. For example, if you wanted to remove a message

that was sent to a large number of users who had mailboxes hosted on mailbox database MBX-

DB-ONE called “Christmas Party Photos,” which was sent by Kim Akers, you could use

the following command:

 

Get-Mailbox –Database MBX-DB-ONE | Export-Mailbox –SubjectKeyWords "Christmas Party

Photos" –SenderKeyWorks "Kim Akers" -DeleteContent

 

Export-Mailbox -Identity john@contoso.com -PSTFolderPath C:\PSTFiles\john.pst

 

 

Archiving

 

 

EMC:

 

Enable-Mailbox "Rich Haddock" -Archive

 

Disable-Mailbox "Rich Haddock" -Archive


Configuring Out of Office via PowerShell

OUT OF OFFICE

Set-MailboxAutoReplyConfiguration Bobjones -AutoReplyState enabled -ExternalAudience all -InternalMessage "I am out of the office until Thursday 14th August 2014. I will reply on my return but if your query is urgent please contact the office on 0800 134567." -ExternalMessage "I am out of the office until Thursday 14th August 2014. I will reply on my return but if your query is urgent please contact the office on 0800 134567."


To Disable



Set-MailboxAutoReplyConfiguration “User1” -AutoReplyState disabled

Public Folder Databases

Prerequisites

 

In order to manage Public Folder databases you need to be a member of  Exchange Organization Administrator

 

There can only be ONE Public Folder Database on any one server.

 

Public folder databases were used in Exchange 2003. They are not created by default in Exchange 2010. 

 

The GUI is easyest way to create a Public Folder Database:

 

 

If you need to create a public folder database you can user EMC command:

 

New-PublicFolderDatabase -Name "My Public Folder Database" -EdbFilePath "C:\Program Files\Microsoft\Exchange Server\Mailbox\PublicDatabase.edb" -LogFolderPath "D:\ExchangeDatabases\Public\Logs\PublicDatabase"

 

 

Moving Public Folder Databases

 

Same as Mailbox databases via the GUI but the EMS is different.

 

Heres the EMS

 

To use the EMS to move all public folder content in a public folder database on Mailbox server MailServerA to a new public folder database on Mailbox server MailServerB, you enter the following command:

 

MoveAllReplicas.ps1 -Server MailServerA -NewServer MailServerB

 

To use the EMS to move content in a tree of folders from Mailbox server MailServerA to Mailbox server MailServerB where the top public folder in the hierarchy is called My Public Folder, you enter the following command:

 

ReplaceReplicaOnPFRecursive.ps1 -TopPublicFolder "\My Public Folder" -ServerToAdd MailServerB -ServerToRemove MailServerA

 

To Remove a Public Folder Database the command specifies the server, not the database. This is because there can only be one Public Folder Database per server.

 

This command removes all user public folders

 

Get-PublicFolder -Server EXCHANGE -Recurse -ResultSize:Unlimited | RemovePublicFolder -Server EXCHANGE -Recurse -ErrorAction:SilentlyContinue

 

This command removes all system public folders

 

Get-PublicFolder -Server EXCHANGE "\Non_Ipm_Subtree" -Recurse -ResultSize:Unlimited | Remove-PublicFolder -Server EXCHANGE -Recurse -ErrorAction:SilentlyContinue

 

Removing Public Folder Databases

 

Before removing, you must move all public folder replicas to another server and remove all public folders in the database.

 

EMS

 

Remove-PublicFolderDatabase –Identity "EXCHANGE\MyPublicFolderDatabase"


Resource Mailboxes

To create a Room Mailbox

 

New-Mailbox –UserPrincipalName conference-beta@adatum.com –Alias conference-beta –Name

Conference-Beta –Database MBX-DB-ONE –OrganizationalUnit Users -Room

 

To create a Equipment Mailbox

 

New-Mailbox –UserPrincipalName video-camera@adatum.com –Alias video-camera –Name videocamera

–Database MBX-DB-ONE –OrganizationalUnit Users -Equipment

 

 

Resource Policies

 

An In-Policy is a policy that applies to the scope selected. The in-policy determines which users will be subject to approval by the resource delegate.

 

 

To set a deligate via EMS:

 

Set-CalendarProcessing Auditorium –ResourceDelegates "Kim_Akers@adatum.com"

–ForwardRequestsToDelegates $true

 

Configuring Automatic Booking

 

If the room needs to be configured so that no delegate is required, you must enable automatic booking.

To enable via EMS:

 

Set-CalendarProcessing Conference-Alpha –AutomateProcessing AutoAccept