Exchange 2010 install prerequisites on Windows Server 2008 R2
open PowerShell as admin
Import-Module ServerManager
Add-WindowsFeature NET-Framework,RSAT-ADDS,Web-Server,Web-Basic-Auth,Web-Windows-Auth,Web-Metabase,Web-Net-Ext,Web-Lgcy-Mgmt-Console,Web-WMI,WAS-Process-Model,RSAT-Web-Server,Web-ISAPI-Ext,Web-Digest-Auth,Web-Dyn-Compression,NET-HTTP-Activation,RPC-Over-HTTP-Proxy -Restart
Set-Service NetTcpPortSharing -StartupType Automatic
exchange 2010 how to create a new recovery mailbox database
New-MailboxDatabase -Name rdb1 -Server mtmx1 -EdbFilePath "E:\20111030-recovery-test\E_\exchange\Mailbox\Mailbox Database 0817826282\Mailbox Database 0817826282.edb" -LogFolderPath "E:\20111030-recovery-test\E_\exchange\Mailbox\Mailbox Database 0817826282" -Recovery
Mount-Database rdb1
Get-MailboxStatistics -Database
Get-MailboxStatistics -Database rdb1 | where {$_.DisplayName -eq "User Mailbox Name"} | fl
exchange 2010 how to delete a mailbox database
Remove-MailboxDatabase -Identity “rdb1"
exchange 2010 how to move system and arbitration mailboxes
Get-Mailbox -Database "Mailbox Database 0001281462" -Arbitration | New-MoveRequest -TargetDatabase no-journal-database
exchange 2010 how to assign a role to a role group
New-ManagementRoleAssignment –Role "Mailbox Import Export" -SecurityGroup "Organization Management"
exchange 2010 how to list roles assigned to a role group
(Get-RoleGroup "Organization Management").Roles Get-ManagementRoleAssignment -RoleAssignee "Organization Management" Get-RoleGroup "Organization Management" |fl Get-ManagementRoleAssignment Get-ManagementRoleAssignment "Mailbox Import Export-Organization Management"
exchange 2010 how to add and remove users to role groups
Add-RoleGroupMember "Organization Management" -Member maytech1 Remove-RoleGroupMember "Organization Management" -Member maytech1
exchange 2010 how to list users assigned to a role group
Get-RoleGroupMember "Organization Management" OR list the group members in A.D. - Microsoft Exchange Security Groups
exchange 2010 how to move a mailbox within the same exchange organization
New-MoveRequest –identity username –TargetDatabase "database name" -BadItemLimit 50
exchange 2010 how to check the status of a mailbox move request
Get-MoveRequest –identity username
Get-MoveRequestStatistics "Jane Doe" -IncludeReport | fl report
exchange 2010 how to transfer a mailbox to a new user
Disable-Mailbox -Identity "mailbox name"
Get-MailboxDatabase | Get-MailboxStatistics | where {$_.DisconnectReason -ne $null} | ft displayname,database,disconnectreason -auto
Connect-Mailbox -Identity "mailbox name" -Database original-database-name -User "New User"
exchange 2010 how to list mailbox details for a specific mailbox on a specific database
Get-MailboxStatistics -Database rdb1 | Where {$_.DisplayName -match "Johnathan May"} |fl
exchange 2010 get Mailbox permissions owner rights on a specific mailbox
Get-MailboxPermission -Identity "username" | Format-Table User, AccessRights, IsInherited, owner
exchange 2010 Mount Dismount database
Dismount a single DB
Dismount-Database -Identity DBNAME -Confirm:$False
Dismount all DBs of a server
Get-MailboxDatabase -Server SERVERNAME | Dismount-Database -Confirm:$False
Mount a single DB
Mount-Database -Identity DBNAME -Confirm:$False
Mount all DBs of a server
Get-MailboxDatabase -Server SERVERNAME | Mount-Database -Confirm:$False
Status of the database on a specific server
Get-MailboxDatabase -Server SERVERNAME -Status | Format-Table Name, Mounted, BackupInProgress, OnlineMaintenanceInProgress
exchange 2010 how to restore a mailbox to an alternate recovery mailbox
New-MailboxRestoreRequest -SourceDatabase rdb1 -SourceStoreMailbox b0b16b28-1526-46f1-bf67-169d5f89d5bd -TargetMailbox exrecovery1 -AllowLegacyDNMismatch -BadItemLimit 500 -AcceptLargeDataLoss
exchange 2010 how to check progress of a mailbox restore request
Get-MailboxRestoreRequest Get-MailboxRestoreRequest -Status Failed |Get-MailboxRestoreRequestStatistics -IncludeReport |fl Get-MailboxRestoreRequest -Status InProgress |Get-MailboxRestoreRequestStatistics -IncludeReport |fl Get-MailboxRestoreRequest | ?{$_.TargetMailbox -match "recovery" -And $_.Status -ne "Failed"} | Get-MailboxRestoreRequestStatistics |fl TargetMailboxIdentity,Status,StatusDetail,BadItemsEncountered,PercentComplete,EstimatedTransferSize,BytesTransferred,ItemsTransferred
exchange 2010 how to export mailbox to pst
- user must be assigned "Mailbox Import Export" role or be in a role group that has that right - only live mailboxes can be exported; recovery group mailboxes cannot be
New-MailboxExportRequest -Mailbox "johnathanm" -FilePath "\\mtnas1\tmp\johnathanm-export.pst"
exchange 2010 how to archive mail in a date range from a mailbox to a pst
two steps: export, then search and delete
Date range exports with New-MailboxExportRequest
http://www.barrytrujillo.com/wordpress/?p=335
New-MailboxExportRequest -ContentFilter {(Received -lt '01/01/2013') -or (Sent -lt '01/01/2013')} -Mailbox “johnathanm" -Name johnathanmArchive2012 -FilePath "\\mtnas1\tmp\johnathanm-archive-2012.pst"
Search-Mailbox johnathanm -SearchQuery "Received:< $('01/01/2012 00:00:00')" -DeleteContent
Search-Mailbox johnathanm -SearchQuery "Sent:< $('01/01/2012 00:00:00')" -DeleteContent
exchange 2010 how to check progress of mailbox export request
Get-MailboxExportRequest |Get-MailboxExportRequestStatistics
Get-MailboxExportRequestStatistics -Identity johnathanm\johnathanmArchive2012 |fl
exchange 2010 how to clear old mailbox export requests
Get-MailboxExportRequest |Remove-MailboxExportRequest
exchange 2010 how to set organization maximum message sizes
Set-TransportConfig -MaxReceiveSize 30MB -MaxSendSize 30MB
exchange 2010 how to set receive connector maximum message sizes
Set-ReceiveConnector -Identity "mtmx1\Default mtmx1" -MaxMessageSize 25Mb Set-ReceiveConnector -Identity "mtmx1\Client mtmx1" -MaxMessageSize 25Mb
exchange 2010 how to create mailbox for pre-existing user
Enable-Mailbox -Identity 'maytech.local/IT/system-accounts/exrecovery2' -Alias exrecovery2
exchange 2010 how to set Blackberry BES Throttling Policy
Set-ThrottlingPolicy BESPolicy -RCAMaxConcurrency $null -RCAPercentTimeInAD $null -RCAPercentTimeInCAS $null -RCAPercentTimeInMailboxRPC $null -EWSMaxConcurrency $null -EWSPercentTimeInAD $null -EWSPercentTimeInCAS $null -EWSPercentTimeInMailboxRPC $null -EWSMaxSubscriptions $null -EWSFastSearchTimeoutInSeconds $null -EWSFindCountLimit $null
Set-Mailbox "BESAdmin" -ThrottlingPolicy BESPolicy
aSet-ThrottlingPolicy BESPolicy -RCAMaxConcurrency $null -RCAPercentTimeInAD $null -RCAPercentTimeInCAS $null -RCAPercentTimeInMailboxRPC $null -EWSMaxConcurrency $null -EWSPercentTimeInAD $null -EWSPercentTimeInCAS $null -EWSPercentTimeInMailboxRPC $null -EWSMaxSubscriptions $null -EWSFastSearchTimeoutInSeconds $null -EWSFindCountLimit $nullType Set-Mailbox "BESAdmin" -ThrottlingPolicy BESPolicy.
exchange 2010 how to find all accounts with email forwarding configured
Get-Mailbox | Where {$_.ForwardingAddress -ne $null} | Select Name, ForwardingAddress, DeliverToMailboxAndForward
exchange 2010 how to list blocked senders in sender filter
Get-SenderFilterConfig
exchange 2010 how to list blocked senders in end user junkmail settings
Get-MailboxJunkEmailConfiguration
http://technet.microsoft.com/en-us/library/dd979780.aspx
Example to update junk email configuration $Temp = Get-MailboxJunkEmailConfiguration "Michele Martin" $Temp.TrustedSendersAndDomains += "maytech.us","fabrikam.com" $Temp.BlockedSendersAndDomain += "jane@fourthcoffee.com" $Temp.BlockedSendersAndDomain -= "domains@maytechgroup.com" Set-MailboxJunkEmailConfiguration -Identity "Michele Martin" -TrustedSendersAndDomains $Temp.TrustedSendersAndDomains -BlockedSendersAndDomains $Temp.BlockedSendersAndDomains
exchange 2010 how to add new sharing permissions to folders in a user's mailbox
Add-MailboxFolderPermission -identity mtcorp\johnathanm:\Calendar -user mtcorp\cassiem -AccessRights Editor
exchange 2010 how to change sharing permissions for folders in a user's mailbox
Set-MailboxFolderPermission -identity mtcorp\johnathanm:\Calendar -user mtcorp\cassiem -AccessRights Reviewer
exchange 2010 how to grant full access permission for a mailbox
Add-MailboxPermission “Mailbox Name" -User “userGrantedAccess" -AccessRights FullAccess
exchange 2010 how to add email alias
Set-Mailbox bsuneja -EmailAddresses @{Add=’bharat.suneja@e14labs.com’}Set-Mailbox bsuneja -EmailAddresses @{Remove=’bharat.suneja@e14labs.com’}
exchange 2010 how to list all users primary and alias email adresses
Get-Mailbox -ResultSize Unlimited |Select-Object DisplayName,ServerName,PrimarySmtpAddress, @{Name=”EmailAddresses”;Expression={$_.EmailAddresses |Where-Object {$_.PrefixString -ceq “smtp”} | ForEach-Object {$_.SmtpAddress}}} | Export-Csv c:\mailbox_usersalias.csv
exchange 2010 how to define automatic replies - out of office messages
Set-MailboxAutoReplyConfiguration bsuneja@e14labs.com –AutoReplyState Scheduled –StartTime “9/8/2011” –EndTime “9/15/2011” –ExternalMessage “External OOF message here” –InternalMessage “Internal OOF message here” Get-MailboxAutoReplyConfiguration bsuneja@e14labs.comSet-MailboxAutoReplyConfiguration bsuneja@e14labs.com –AutoReplyState Disabled –ExternalMessage $null –InternalMessage $null
exchange 2010 how to create dynamic distribution group
New-DynamicDistributionGroup -Name "zRTest" -RecipientFilter {(RecipientType -eq 'UserMailbox') -and (Title -like 'Director*' -or Title -like 'Manager*') -and (StateOrProvince -eq 'WA')} -RecipientContainer "ou=MayTech,dc=corp,dc=maytechgroup,dc=com"
exchange 2010 how to update dynamic distribution group OPATH (formerly LDAP) filter
Set-DynamicDistributionGroup zRegion2 -RecipientFilter {(( ObjectClass -eq 'user' ) -and (( Office -like '*Columbia Falls*' ) -or ( Office -like '*Coeur d''Alene*' ) -or ( Notes -like '*zRegion2*' )))} -RecipientContainer "corp.maytechgroup.com/MayTech"
exchange 2010 OPATH attributes list
http://technet.microsoft.com/en-us/library/bb738157(EXCHG.80).aspx
exchange 2010 how to display dynamic distribution group membership
$MarketingGroup = Get-DynamicDistributionGroup "Marketing Group"
Get-Recipient -RecipientPreviewFilter $MarketingGroup.RecipientFilter
or
Get-Recipient -RecipientPreviewFilter $MarketingGroup.LdapRecipientFilter
exchange 2010 how to list exchange certificates and thumbprints
Get-ExchangeCertificate [-Server servername]
exchange 2010 how to create a new certificate
New-ExchangeCertificate -GenerateRequest -KeySize 2048 -SubjectName "C=US, L=Missoula, S=Montana, O=May Technology Group, CN=mtmx1.maytechgroup.com" -DomainName autodiscover.maytechgroup.com, mtmx1.maytech.local, autodiscover.maytech.local, mail.maytechgroup.com, legacy.maytechgroup.com, mtmx1, maytechgroup.com, maytech.local -PrivateKeyExportable:$true
exchange 2010 how to renew SSL certificate
Get-ExchangeCertificate -Thumbprint "96b…_TO_BE_REPLACED_…" | New-ExchangeCertificate -GenerateRequest -PrivateKeyExportable:$true > renew-base64.txt
Then get the cert approved by a public CA. Last run the import process mentioned below.
exchange 2010 how to export an exchange SSL certificate
$file = Export-ExchangeCertificate -Thumbprint 5113ae0233a72fccb75b1d0198628675333d010e -BinaryEncoded:$true -Password (Get-Credential).password
Set-Content -Path "c:\certificates\htcert.pfx" -Value $file.FileData -Encoding Byte
exchange 2010 how to import an exchange SSL certificate
The password argument is optional. If you're importing a certificate you just received from a public CA, then you most likely won't need it. It doesn't have to be a .pfx type either - any cert will do.
Import-ExchangeCertificate -FileData ([Byte[]]$(Get-Content -Path c:\certificates\ExportedCert.pfx -Encoding byte -ReadCount 0)) -Password:(Get-Credential).password
exchange 2010 how to enable an SSL certificate to be used for Exchange services
Enable-ExchangeCertificate -Thumbprint <String> -Services POP,IMAP,SMTP,IIS
exchange 2010 how to enable Outlook Anywhere
enable-OutlookAnywhere -Server 'MTMX1' -ExternalHostname 'mail.maytech.us' -DefaultAuthenticationMethod 'Basic' -SSLOffloading $false
exchange 2010 how to allow anonymous relay
New-ReceiveConnector -Name "Anonymous Relay" -Usage Custom -PermissionGroups AnonymousUsers -Bindings 10.2.3.4:25 -MaxMessageSize 25MB -RemoteIpRanges 64.18.0.0/20,10.25.1.0/26
Get-ReceiveConnector "Anonymous Relay" | Add-ADPermission -User "NT AUTHORITY\ANONYMOUS LOGON" -ExtendedRights "Ms-Exch-SMTP-Accept-Any-Recipient"
exchange 2010 how to replace hub transport server
Set-SendConnector -Identity default-send-connector -SourceTransportServers mtmx1
exchange 2010 how to enable anti-spam on transport server
C:\Program Files\Microsoft\Exchange Server\V14\Scripts\install-AntispamAgents.ps1
Restart-Service MSExchangeTransport
Set-TransportConfig -InternalSMTPServers list,of,edge,transport,servers
exchange 2010 how to copy public folder database to new server
C:\Program Files\Microsoft\Exchange Server\V14\Scripts\AddReplicaToPFRecursive.ps1 -Server oldservername -TopPublicFolder \ -ServerToAdd newservername
exchange 2010 how to migrate public folder replicas to new server
C:\Program Files\Microsoft\Exchange Server\V14\Scripts\MoveAllReplicas.ps1 -Server oldservername -NewServer newservername
C:\Program Files\Microsoft\Exchange Server\V14\Scripts\ReplaceReplicaOnPFRecursive.ps1 –TopPublicFolder \ –ServerToAdd newservername –ServerToRemove oldservername
exchange 2010 how to list the mailboxes in each database
Get-Mailbox | Sort database, name | Format-Table name, database
exchange 2010 how to display white space in each database that could be cleared with a defrag
Get-MailboxDatabase -Status | ft Name, DatabaseSize, AvailableNewMailboxSpace -auto
exchange 2010 how to clear white space with an offline defrag
Dismount-Database "maytech-users-1"
Get-MailboxDatabase "maytech-users-1" | fl AdminDisplayName, Guid, EdbFilePath, LogFolderPath
eseutil /d path-to-edbfile /t\\tempserverstorage\defrag\temp.edb
Mount-Database "maytech-users-1"
exchange 2010 how to search someone's mailbox
user must have "Mailbox Import Export" role assigned
New-ManagementRoleAssignment -Role "Mailbox Import Export" -User jmaya
Search-Mailbox -Identity username -SearchQuery "Body:'*phrase*'" -TargetMailbox jmay -TargetFolder export-searches
Search-Mailbox -Identity username -SearchQuery “SenderAddress:’*domain*'" -TargetMailbox jmay -TargetFolder export-searches
Search-Mailbox -Identity username -SearchQuery “SenderAddress:’*domain*’ AND Subject:test" -TargetMailbox jmay -TargetFolder export-searches
Get-Mailbox -ResultSize Unlimited | Search-Mailbox -SearchQuery "Subject:'*phrase*'" -TargetMailbox jmay -TargetFolder export-searches
exchange 2010 how to search message tracking logs
to display more than 16 recipients, $FormatEnumerationLimit must be set to 1
$FormatEnumerationLimit = -1
Get-MessageTrackingLog -Server mtmx1 -Recipients:email@company.com -Start "01/01/2010 00:00:00" -End "02/01/2010 00:00:00" -Subject:"some subject line here" |fl EventId, Source, Sender, Recipients, MessageSubject, Timestamp
|ft … -wrap
exchange 2010 how to find object associated with / owner of email address
Get-Recipient -Results unlimited | where {$_.EmailAddresses -Match "insert-email-here"} | select Name, EmailAddresses, RecipientType
exchange 2010 how to export list of mailboxes with primary email addresses
Get-Mailbox | Select Name, Alias, SamAccountName, PrimarySmtpAddress |Export-Csv C:\tmp\user-mailbox-list.csv
Get-Mailbox [-OrganizationalUnit "ou=…"] | Select Name, Alias, SamAccountName, PrimarySmtpAddress |Export-Csv C:\tmp\user-mailbox-list.csv
exchange 2010 how to create new mail contact
New-MailContact -Name "Wendy Smith" -Alias "wsmith" -ExternalEmailAddress "wsmith@securitysimplified.com" -FirstName "Wendy" -LastName "Smith" -OrganizationalUnit 'maytech.us/maytech/external-entities/company'
exchange 2010 how to set contact details
Set-Contact -Name "Wendy Smith" -Phone "406-555-5555" -Title "Job Title" -Department "department" -Office "Office Location"
exchange 2010 how to list contacts
Get-Contact | Select Name, Alias, ExternalEmailAddress, FirstName, LastName, OrganizationalUnit |Export-Csv .\contacts-list.csv
exchange 2010 how to list soft deleted mailboxes
Get-MailboxStatistics -Database maytech-users-1 | Where { $_.DisconnectReason -eq "SoftDeleted" } | ft MailboxGUID, DisplayName, DisconnectReason
exchange 2010 how to remove soft deleted mailboxes
Get-MailboxStatistics -Database maytech-users-1 | where {$_.DisconnectReason -eq "SoftDeleted"} | foreach {Remove-StoreMailbox -Database $_.database -Identity $_.mailboxguid -MailboxState SoftDeleted -Confirm:$False}
exchange 2010 how to count messages received in a day
Get-MessageTrackingLog -Start “2/14/2013 00:00:00” -End “2/15/2013 00:00:00” -EventId “send” -ResultSize unlimited | Measure-Object
Get-MessageTrackingLog -Start “2/14/2013 00:00:00” -End “2/15/2013 00:00:00” -EventId “receive” -ResultSize unlimited | Measure-Object
Get-MessageTrackingLog -Start (Get-Date).AddDays(-1).ToShortDateString() -End (Get-Date).ToShortDateString() -EventId “receive” -ResultSize unlimited | Measure-Object -End
exchange 2010 how to show mailbox size across the organization
Get-MailboxDatabase | Get-MailboxStatistics | where {$_.ObjectClass -eq "Mailbox"} | Sort-Object TotalItemSize –Descending | Select DisplayName, TotalItemSize, ItemCount, StorageLimitStatus, Database | Export-Csv C:\tmp\mailbox-sizes.csv
All users mailbox size
Get-MailboxDatabase "Mailbox Database 21102015" | Get-MailboxStatistics | Sort TotalItemSize -desc | ft displayname, totalitemsize, itemcount
exchange 2010 how to show mailboxes that have exceeded their quotas
Get-Mailbox | where {$_.UseDatabaseQuotaDefaults -eq $False} | ft Name,Prohibit*,Issue*
get a list of all mailboxes with size and sorted descending by size
Get-mailbox | get-mailboxstatistics | sort-object totalitemsize –descending | ft displayname,totalitemsize
exchange 2010 how to show mailboxes without storage quotas
Get-Mailbox | where {$_.UseDatabaseQuotaDefaults -eq $False}
Get-Mailbox | where {$_.UseDatabaseQuotaDefaults -eq $False} | ft name,prohibit*,issue*
exchange 2010 how to get list of all activesync devices
$devices = Get-CASMailbox -Filter {hasactivesyncdevicepartnership -eq $true -and -not displayname -like "CAS_{*"}
$devices | foreach-Object{ Get-ActiveSyncDeviceStatistics -Mailbox $_.Identity | Select-Object DeviceFriendlyName,Identity,GUID,DeviceType,DeviceUserAgent,FirstSyncTime,LastSuccessSync } | Export-Csv c:\tmp\devices.csv
exchange 2010 how to get list of activesync devices associated with a single mailbox
Get-ActiveSyncDeviceStatistics -Mailbox jmay | Select-Object GUID,DeviceFriendlyName,Identity,DeviceType,DeviceUserAgent,FirstSyncTime,LastSuccessSync
exchange 2010 how to remove activesync device partnership
Remove-ActiveSyncDevice -Identity [device-GUID]
exchange 2010 prepare for cross-forest mailbox moves - enable MRSProxy
Set-WebServicesVirtualDirectory -Identity "[servername\]EWS (Default Web Site)" -MRSProxyEnabled $true
Get-WebServicesVirtualDirectory -Server server name | fl *MRS*
exchange 2010 migrating exchange account settings cross-forest
run this from a box in target (local) domain:
cd C:\Program Files\Microsoft\Exchange Server\V14\Scripts
$localCredentials = Get-Credential
$remoteCredentials = Get-Credential
.\Prepare-MoveRequest.Ps1 -Identity "EmailAddress" -RemoteForestDomainController "mtdc1.maytech.local" -RemoteForestCredential $remoteCredentials -LocalForestDomainController "mtdc1.corp.maytechgroup.com" -LocalForestCredential $localCredentials -TargetMailUserOU "ou=IT,ou=MT,dc=corp,dc=maytechgroup,dc=com" -UseLocalObject -Verbose
exchange 2010 migrating exchange move mailboxes cross-forest
http://technet.microsoft.com/en-us/library/dd351280(v=exchg.141).aspx
Get-WebservicesVirtualDirectory –Server <source-domain-server> | Set-WebServicesVirtualDirectory –MRSProxyEnabled $true
Get-Mailbox [-OrganizationalUnit "ou=…"] | Select PrimarySmtpAddress |Export-Csv C:\tmp\migrate-users-list.csv
$remoteCredentials = Get-Credential
Import-Csv "migrate-users-list.csv" |New-MoveRequest -Remote -RemoteHostname 'source-mbx.maytech.local' -RemoteCredential $remoteCredentials -TargetDeliveryDomain dest-active-directory-domain-name
OR 1-by-1: New-MoveRequest -Identity -Remote -RemoteHostname 'source-mbx.maytech.local' -RemoteCredential $remoteCredentials -TargetDeliveryDomain dest-active-directory-domain-name
Update-EmailAddressPolicy "Default Policy"
exchange 2010 how to show number of logs generated on a server every minute
Get-MailboxDatabase -Server $env:ComputerName | ?{ %{$_.DatabaseCopies | ?{$_.ReplayLagTime -ne [TimeSpan]::Zero -And $_.HostServerName -eq $env:ComputerName} } } | %{ $count = 0; $MinT = [DateTime]::MaxValue; $MaxT = [DateTime]::MinValue;Get-ChildItem -Path $_.LogFolderPath -Filter "*????.log" | %{ $count = $count + 1; if($_.LastWriteTime -gt $MaxT){ $MaxT = $_.LastWriteTime}; if($_.LastWriteTime -lt $MinT){ $MinT= $_.LastWriteTime} }; ($count /($MaxT.Subtract($MinT)).TotalMinutes) } | Measure-Object -Min -Max -Ave
exchange 2010 how to increase number of simultaneous connections from barracuda spam filter appliance
the only warning here is that the server is now more open to DDoS attack because the default rate is 20. As long as the server is protected from the general internet, you should be fine.
Set-ReceiveConnector -Identity MTMX1\anonymous-relay -MaxInboundConnectionPerSource 500
exchange 2010 how to set out of office auto reply message
http://support.microsoft.com/kb/2667296
Set-MailboxAutoReplyConfiguration <alias> -AutoReplyState enabled -ExternalAudience all -InternalMessage <Message to internal senders> -ExternalMessage <Message to external senders>
Set-MailboxAutoReplyConfiguration <alias or email> –AutoReplyState Scheduled –StartTime “9/8/2011” –EndTime “9/15/2011” –ExternalMessage “External OOF message here” –InternalMessage “Internal OOF message here”
Set-Mailbox <alias> -ForwardingAddress <recipient> -DeliverToMailboxAndForward $True
exchange 2010 DAG notes
http://blogs.technet.com/b/exchange/archive/2011/05/31/exchange-2010-high-availability-misconceptions-addressed.aspx
exchange 2010 how to add a DAG database copy
Add-MailboxDatabaseCopy -Identity mailbox-name -MailboxServer destination-mbx-server -ActivationPreference 2
exchange 2010 how to manually reseed DAG database files
Update-MailboxDatabaseCopy -Identity “mailbox-name\destination-mbx-server" -DeleteExistingFiles
exchange 2010 how to manually move DAG active database to new server
Move-ActiveMailboxDatabase mgmt-mailbox-2 -ActivateOnServer pwi-mso-mbx2
exchange 2010 how to manually move all DAG active databases from one server - deactivate all DAG copies on a server
Move-ActiveMailboxDatabase -Server server-to-deactivate
exchange 2010 how to set the primary smtp address of a mail user
Set-MailUser jmay -PrimarySmtpAddress jmay@newdomain.com -EmailAddressPolicyEnabled $false
exchange 2010 how to disable unified messaging for a user
Disable-UMMailbox -Identity tonysmith@contoso.com
exchange 2010 how to show rpcClientAccessServer CAS-Array setting on database
Get-MailboxDatabase | select Name,rpcClientAccessServer
exchange 2010 how to configure internal client access server
Get-MailboxDatabase |Set-MailboxDatabase -RpcClientAccessServer cas.mt.maytechgroup.com
exchange 2010 how to list full access mailbox permissions granted to users
Get-Mailbox | Get-MailboxPermission | where {$_.user.tostring() -ne "NT AUTHORITY\SELF" -and $_.IsInherited -eq $false} | Export-Csv -NoTypeInformation mailboxpermissions.csv
exchange 2010 how to update global address list
Get-GlobalAddressList | Update-GlobalAddressList
Get-AddressList | Update-AddressList
Get-OfflineAddressBook | Update-OfflineAddressBook
No Comments