TechShizz | All posts tagged 'Exchange 2010'

Creating Mailboxs / MovingMailboxs / ConvertingMailboxs

To create a mailbox inEMC:

 

New-Mailbox –Name 'Erik Andersen' –Alias 'Erik_Andersen' –UserPrincipalName 'Erik_Andersen@adatum.com' –SamAccountName 'Erik_Andersen' –FirstName 'Erik' –LastName 'Andersen'

 

To Attach/Enable and existing mailbox to a user:

 

Enable-Mailbox 'Adatum.com/Users/Toni Poe'

 

A Linked mailbox can be created in EMC - You need to specify the domain controller for which the user is a member of:

 

New-Mailbox –Database "MBX-DB-1" –Name "Josh Pollock" –LinkedDomain Controller "DC01fabrikam.fabrikam.com" –LinkedMasterAccount Fabrikam\josh_pollock –OrganizationalUnit Users –UserPrincipalName josh_pollock@adatum.com

 

 

Moving Mailboxes

 

If you perform a move request using the New-MoveRequest cmdlet, you should run

the Remove-MoveRequest cmdlet once the move successfully completes. It is not

Possible to move the mailbox again until the Remove-MoveRequest cmdlet is executed

against a moved mailbox. When you perform a move through the EMC, this process

occurs automatically.

 

When performing a cross-forest move, the target Exchange 2010 forest must contain

a valid mail-enabled user account that has been prepared for the move.

 

Converting Mailboxes

 

EMS must be used to convert mailbox types.

 

Mailboxes can be converted from:

 

  • User mailbox to shared mailbox
  • User mailbox to resource mailbox
  • Shared mailbox to user mailbox
  • Shared mailbox to resource mailbox
  • Resource mailbox to user mailbox
  • Resource mailbox to shared mailbox

 

Set-Mailbox Hovercraft –Type Room

Bulk Mailbox Creation

CSV template for this script is attached to this post named "Template.xls"

 

To create mailboxes all with the same password:

$database = Get-MailboxDatabase

$Password=Read-Host “Enter Password” –AsSecureString

 

Import-CSV CreateMailboxes.csv | ForEach {New-Mailbox -Alias $_.alias -Name $_.name -userPrincipalName $_.UPN -Database $database -OrganizationalUnit Users -Password $Password} -ResetPasswordOnNextLogon $true

 

 

To create mailboxes with custom passwords:

 

Import-CSV D:\Scripts\Bulk Mailbox Creation\users.csv | ForEach {New-Mailbox -Alias $_.alias -Name $_.name -userPrincipalName $_.UPN -Database “Mailbox Database” -OrganizationalUnit Users -Password

(ConvertTo-SecureString $_.password -AsPlainText -Force)}

Template.xlsx (10.7KB)

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

Deploying Exchange Databases

Prerequisites

 

To create a Mailbox database you need to be a member of the Organization Management, Server Management or Storage Management groups.


Mount/dismount/Move/Remove Database


To Mount/dismount in the GUI

Organization Configuration > Database Management Tab > Right click on the database > Mount/Dismount

 

To Mount/dismount with powershell:

Mount-Database –Identity MyMailboxDatabase

Dismount-Database –Identity MyMailboxDatabase

 

To remove in the GUI is simple -

Organization Configuration > Database Management Tab > Right click on the database > Remove

 

To remove with powershell:

Remove-MailboxDatabase –Identity MyMailboxDatabase

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