bodminman Posted November 10, 2010 Posted November 10, 2010 (edited) Hi there, I've just started getting me head round using Exchange Powershell command so I thought I'd share some that I thought useful. Please add more! After adding new users run these commands to update the address lists: Get-Globaladdresslist | update-Globaladdresslist Get-Addresslist | Update-Addresslist To restrict the number of recipients members of a database can send mail to: Get-Mailbox -Database "Database name" -ResultSize Unlimited |Set-Mailbox -RecipientLimits 5 Creating a new mailbox database (new year groups): new-mailboxdatabase -Server '' -Name '' -EdbFilePath 'E:\Exch2010-DBs\\.edb' -LogFolderPath 'E:\Exch2010-Logs\' Mounting the new database: Mount-Database -Identity "" Setting mailbox limits within a database: Set-MailboxDatabase -ProhibitSendReceiveQuota '45Mb' -ProhibitSendQuota '40Mb' -IssueWarningQuota '35Mb' -RetainDeletedItemsUntilBackup $true -Identity "" Set mailbox offline address book: Set-MailboxDatabase -OfflineAddressBook '\Default Offline Address Book' -Identity "" Create new global address list: New-GlobalAddressList -Name ",OU=Exchange Groups,DC=XXX,DC=internal')} Update GAL: Update-GlobalAddressList -Identity "" Default GAL permission change: Add-ADPermission -Identity $dngal -User "" -AccessRights extendedright -ExtendedRights "open address list" -Deny:$True Edited November 10, 2010 by bodminman 2
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now