Archive for February 2013

Unable to See Disabled Mailbox in Disconnected Mailboxes console in Exchange 2010, 2007   Leave a comment

When user Mailbox is recently disabled, deleted and we are unable to see it in Disconnected mailbox console we have to run a powershell to see it.

For Single Database

Clean-MailboxDatabase -Identity “Database Name”

For All Databases of a server

Get-MailboxDatabase -Server “Mailbox Server Name” | Clean-MailboxDatabase

Posted February 22, 2013 by Prem Rana in EMS Commands (Powershell)

How to Check mailbox details in MS Exchange 2007, 2010 using powershell   Leave a comment

Get-mailbox -Identity “User Dispaly Name or Alias or Email Address”

Result Format Name        Alias        ServerName      ProhibitSendQuota

—-             —–             ———-             —————–

Get-mailbox -Identity “User Dispaly Name or Alias or Email Address” | fl

Posted February 22, 2013 by Prem Rana in EMS Commands (Powershell)

How to Check Available WhiteSpace on MS Exchange 2010 Database Using Powershell   Leave a comment

Get-MailboxDatabase -identity “Database Name”-Status | Select-Object Server,Name,AvailableNewMailboxSpace

Result Format Server                   Name                    AvailableNewMailboxSpace

————————–                       —-                             ————————

Posted February 22, 2013 by Prem Rana in EMS Commands (Powershell)

How to check Exchange 2007, 2010 Email Queue Status Using Powershell   Leave a comment

Get-Queue -Server “Server Name”

Result Format Identity       Delivery         Type          Status            MessageCount NextHopDomain ——–        ————       ——          ————                 ————-

Posted February 22, 2013 by Prem Rana in EMS Commands (Powershell)

How to check Permission on a mailbox in MS Exchange 2007, 2010 Using Powershell   Leave a comment

Get-MailboxPermission -Identity “User Display Name or Alias or Email address”

Result Format Identity            User            AccessRights         IsInherited           Deny ——–               —-               ————                 ———–               —-

Posted February 22, 2013 by Prem Rana in EMS Commands (Powershell)

How to give permission on user’s mailbox in Exchange 2007,2010 Using Powershell   Leave a comment

Add-MailboxPermission -Identity “User Display Name” -User “DomainAlias” -AccessRights FullAccess

————————————————————————————————–

Add-MailboxPermission -Identity “User Display Name” -User “DomainAlias” -AccessRights Editor

—————————————————————————————————

Add-MailboxPermission -Identity “User Display Name” -User “DomainAlias” -AccessRights Author

———————————————————————————————-

Add-MailboxPermission -Identity JeroenC -User ‘Mark Steele’ -AccessRight FullAccess -InheritanceType All -Automapping $false

—————————————————————————————————————-

Add-MailboxPermission -Identity “Tony Smith” -User “Ayla Kol” -AccessRights ReadPermission

Posted February 22, 2013 by Prem Rana in EMS Commands (Powershell)

How to Move Mailboxes Importing CSV File in Exchange 2007 Using Powershell   Leave a comment

How to Move Mailboxes Importing CSV File Using Powershell in Exchange 2007

import-csv d:filename.csv | move-mailbox -identity {$_.alias} -TargetDatabase “Databae Name” -PreserveMailboxSizeLimit -Confirm:$false -MaxThreads 16 | Out-file D:LOGS_Move.txt

Posted February 22, 2013 by Prem Rana in EMS Commands (Powershell)