Search This Blog

Saturday, March 3, 2012

some exchange 2010 pwershell scripts

Set-OrganizationConfig -MailTipsExternalRecipientsTipsEnabled $true
Set-OrganizationConfig -MailTipsLargeAudienceThreshold 6

Restart-Service MSExchangeServiceHost
Restart-Service MSExchangeFDS
Set-Mailbox Peter -UseDatabaseQuotaDefaults $true $true
Restart-Service MSExchangeMailboxAssistants
Set-Mailbox John -MailTip "This user is restricted."
Get-Mailbox John | FL MailTip
Set-DistributionGroup "Contoso IT" -MailTip "The IT group will be at a conference next week."
New-MailboxDatabase -Name ArchiveMDB01 -Server EX01-
Mount-Database -Identity ArchiveMDB01
Get-MailboxStatistics -Identity Holly | FL TotalItemSize
Set-Mailbox -Identity Holly -UseDatabaseQuotaDefaults $False -ProhibitSendReceiveQuota 7850075
Set-Mailbox -Identity Holly -UseDatabaseQuotaDefaults $False -ProhibitSendReceiveQuota 7850075
Restart-Service MSExchangeMailboxAssistants
Get-OwaVirtualDirectory | Set-OwaVirtualDirectory -ExternalUrl "https://mail.contoso.com/owa" -CalendarPublishingEnabled $true

No comments:

Post a Comment