Exchange 2010

Home/Exchange Server/Exchange 2010

Managing Groups CMDlets

By | 2013-07-19T19:42:57+00:00 July 19th, 2013|Exchange 2010, Exchange Server|

Get Distribution Group Get-DistributionGroup -identity 'user@domain.com' | fl Get Distribution Group Members and export to text file Get-DistributionGroupMember -Identity 'group@domain.com' | ft name, primarysmtpaddress > c:pathfile.txt Get Distribution Group information Get-DistributionGroup -Identity 'group@domain.com' | fl DisplayName, Alias, PrimarySmtpAddress, EmailAddresses, RecipientType, HiddenFromAddressListsEnabled, LastExchangeChangedTime, LegacyExchangeDN, WhenChanged, WhenCreated, WhenChangedUTC, WhenCreatedUTC, AcceptMessagesOnlyFrom, AcceptMessagesOnlyFromDLMembers, AcceptMessagesOnlyFromSendersOrMembers, CustomAttribute* Add Group member when [...]

Resource Rooms and Calendars CMDlets

By | 2013-07-19T19:35:11+00:00 July 19th, 2013|Exchange 2010, Exchange Server|

Disable Double Booking of Meeting Rooms Set-CalendarProcessing -Identity 'room' -AllowConflicts:$false Disable Double Booking on all Meeting Rooms Get-Mailbox | where {$_.ResourceType -eq “Room” } | Set-CalendarProcessing -AllowConflicts:$false Get Status of Meeting Rooms Calendars Get-CalendarProcessing -Identity room | fl Get Calendar Permissions for user Get-MailboxFolderPermission roomname@domain.org:calendar Grant read rights to the calender in the "MeetingRoom" calendar [...]

Managing Mailbox Permissions CMDlets

By | 2013-07-19T12:23:52+00:00 July 19th, 2013|Exchange 2010, Exchange Server|

Grant Send on Behalf of Permissions Set-Mailbox 'user@domain.com' -GrantSendOnBehalfTo 'user@domain.com' Add Editor permissions Add-MailboxFolderPermission -Identity 'user@domain.com' -User 'user@domain.com' -AccessRights Editor Add Reviewer permissions (what if) Set-MailboxFolderPermission -Identity 'user@domain.com' -User 'user@domain.com' -AccessRights Reviewer -whatif Getting Mailbox Folder Permissions Get-MailboxFolderPermission -Identity 'user@domain.com' | fl Get-MailboxFolderPermission -Identity user@domain.com:inbox Impersonation Rights new-ManagementRoleAssignment Name:RoleName -Role:ApplicationImpersonation -User:'domainalias' Get User Mailbox Permissions [...]

Mailbox Move CMDlets

By | 2013-07-18T12:17:12+00:00 July 18th, 2013|Exchange 2010, Exchange Server|

Get a count of all mailboxes in database (per DB) Get-mailboxdatabase -identity EX10mbx11 | Get-Mailbox -resultsize unlimited | Group-Object -Property:Database | FT name,count -AutoSize Use this command to view how many move requests are in the queue to be moved: (Get-MoveRequest -MoveStatus Queued).count Find the number of Move requests that haven't completed: (Get-moverequest -resultsize unlimited [...]

Mailbox Import Exports CMDlets

By | 2013-07-18T11:27:18+00:00 July 18th, 2013|Exchange 2010, Exchange Server|

Export a Mailbox to PST New-MailboxExportRequest -Mailbox user@domain.org -FilePath "\pathuser.pst" Get Mailbox Export Requests Get-MailboxExportRequest | Get-MailboxExportRequestStatistics Remove Mailbox Export Requests Get-MailboxExportRequest | Remove-MailboxExportRequest Export Mailbox to PST New-MailboxExportRequest -Mailbox user@domain.org -FilePath "\pathuser.pst" Import Mailbox to PST New-MailboxImportRequest -Mailbox user@domain.org -FilePath "\pathuser.pst" Get Mailbox Import Requests Get-MailboxImportRequest | Get-MailboxImportRequestStatistics

DAG Management CMDLETS

By | 2013-07-14T00:50:49+00:00 July 14th, 2013|Exchange 2010, Exchange Server|

Get DAG Status Get-DatabaseAvailabilityGroup EX10DAG1 -Status | fl StartDagServerMaintenance.ps1 script to put the DAG member in maintenance mode .StartDagServerMaintenance.ps1 -serverName EX10SRV02 StopDagServerMaintenance.ps1 script to take the DAG member out of maintenance mode .StopDagServerMaintenance.ps1 -serverName EX10SRV07 Find DatabaseCopyAutoActivationPolicy for all Servers Get-MailboxServer | Sort-Object -Property DatabaseCopyAutoActivationPolicy | ft name,DatabaseCopyAutoActivationPolicy -AutoSize Get Maintenance Status Get-DatabaseAvailabilityGroup EX10DAG1 -Status [...]

Basic Exchange Database CMDLETS

By | 2013-07-14T00:37:51+00:00 July 14th, 2013|Exchange 2010, Exchange Server|

Get ALL Databases and Active Preference information NEAT Get-MailboxDatabase | Sort Name | Select Name, ActivationPreference Get All databases and Activation Preference information Get-MailboxDatabase | ft name, server, activationpreference -AutoSize Get Specific databases and Activation Preference information Get-MailboxDatabase -Identity 'EX10mbx12' | fl name, server, activationpreference Set or Move Active Database Move-ActiveMailboxDatabase -Identity 'EX10mbx22' -ActivateOnServer 'EX1004' [...]

Database Maintenance and Management CMDLETS

By | 2013-07-14T00:19:11+00:00 July 14th, 2013|Exchange 2010, Exchange Server|

Defrag Mailbox Database eseutil /d EX10mbx01.edb /t E:DBEX10mbx05defragEX10mbx01_temp.edb Disable Exchange Search for a mailbox database Set-MailboxDatabase "EX10MBX01" -IndexEnabled $FALSE Enable Exchange Search for a mailbox database Set-MailboxDatabase "EX10MBX06" -IndexEnabled $TRUE Get Status of Database Indexing Get-MailboxDatabase | Sort-Object -Property IndexEnabled | ft name, IndexEnabled -autosize Set Circular Logging for Database Set-MailboxDatabase -identity EX10mbx21 -CircularloggingEnabled:$true Get [...]

Exchange 2010 Database Statistics Powersell CMDlets

By | 2013-07-08T22:49:50+00:00 July 8th, 2013|Exchange 2010, Exchange Server|

Get Number of Mailboxes Per Database (Global) get-mailbox -resultsize unlimited | group-object -property Database –noelement Get a count of all mailboxes in database (per DB) Get-mailboxdatabase -identity EX10mbx07 | Get-Mailbox -resultsize unlimited | Group-Object -Property:Database | FT name,count -AutoSize Get a count of all mailboxes in Exchange Get-Mailbox -resultsize unlimited | Group-Object -Property:Database | FT [...]

Exchange 2010 Database Status PowerShell CMDlets

By | 2013-07-08T14:26:03+00:00 July 8th, 2013|Exchange 2010, Exchange Server|

Status for all database copies on the Mailbox server Ex10CHM10 by status Get-MailboxDatabaseCopyStatus -Server Ex10CHM09 | Sort-Object -Property Status| ft mailboxserver,DatabaseName, status,Copyqueuelength,Replayqueuelength, ContentIndexState, ActiveCopy,ErrorMessage -AutoSize Get Database Copy Status Get-MailboxDatabaseCopyStatus -Identity 'Ex10mbx12' | ft name,Status,ContentIndexState,ReplayQueueLength,CopyQueueLength -autosize Get High Copy Queue Length in Organization get-mailboxserver | Get-MailboxDatabaseCopyStatus | sort-object -property copyqueuelength -des | ft name,Status,ContentIndexState,ReplayQueueLength,CopyQueueLength -autosize [...]

Database Seeding cmdlets

By | 2013-06-07T12:59:26+00:00 June 7th, 2013|Exchange 2010, Exchange Server|

Get Database Copy Status Get-MailboxDatabaseCopyStatus -Identity 'EX10mbx01' | ft name,Status,ContentIndexState,ReplayQueueLength,CopyQueueLength -autosize Status for all database copies on the Mailbox server EX10CHM10 by status Get-MailboxDatabaseCopyStatus -Server EX10CHM01 | Sort-Object -Property Status| ft mailboxserver,DatabaseName, status,Copyqueuelength,Replayqueuelength, ContentIndexState, ActiveCopy,ErrorMessage -AutoSize UPDATE Seed a copy of a database named EX10mbx08 on EX10CHM01 using EX10CHM04 as the source Mailbox server for [...]

User & Mailbox Management

By | 2013-06-05T17:02:01+00:00 June 5th, 2013|Exchange 2010, Exchange Server|

Keep record of PowerShell commands Start-Transcript -Path c:PS_logfile.txt Script to Set Database Retention Defaults on all mailboxes (get-mailbox -resultsize unlimited | Set-Mailbox -UseDatabaseRetentionDefaults $true) Find Mailbox Rules Get-InboxRule -Mailbox {User Mailbox} Get Mailbox Database and Server Information Get-Mailbox -Identity {User Mailbox} | fl Alias,PrimarySMTPAddress,Database,ServerName Get Sizes of all Folders in Mailbox Get-MailboxFolderStatistics "{User Mailbox}" | FL Date, Name, [...]

Exchange 2010 DAG Related

By | 2013-06-05T17:00:21+00:00 June 5th, 2013|Exchange 2010, Exchange Server|

Get DAG Status Get-DatabaseAvailabilityGroup {DAG NAME} -Status | fl StartDagServerMaintenance.ps1 script to put the DAG member in maintenance mode  .StartDagServerMaintenance.ps1 -serverName {DAG NAME} StopDagServerMaintenance.ps1 script to take the DAG member out of maintenance mode .StopDagServerMaintenance.ps1 -serverName {DAG NAME} Find DatabaseCopyAutoActivationPolicy for all Servers Get-MailboxServer | Sort-Object -Property  DatabaseCopyAutoActivationPolicy | ft name,DatabaseCopyAutoActivationPolicy -AutoSize Get Maintenance Status [...]