• Welcome to community.cognetic.com.
 

News:

Cognetic Awarded one of Houston's Largest Tech Companies

Main Menu

Exchange 2010 - Powershell Command Line

Started by admin, January 26, 2012, 01:46:30 AM

Previous topic - Next topic

admin

(TO GRANT A USER FULL ACCESS TO ANOTHER MAILBOX)
add-MailboxPermission -Identity "Mailbox" -User "Trusted User" -AccessRight FullAccess -InheritanceType All -Automapping $false
or
add-MailboxPermission -Identity "Mailbox" -User "Trusted User" -AccessRights FullAccess

(REMOVE A USER FULL ACCESS FROM ANOTHER MAILBOX)
Remove-MailboxPermission -Identity "Mailbox" -User "Trusted User" -AccessRight FullAccess -InheritanceType All

(TO ADD EXCHANGE 2007 /2010 OWA to IIS WEBS)
New-OWAVirtualDirectory -OWAVersion "Exchange2007" -Name "owa" -Website "sunshinekids.org"

(TO REMOVE EXCHANGE 2007 /2010 OWA from IIS WEBS)
Remove-OwaVirtualDirectory -identity "owa (Default Web site)"

(TO SET EXCHANGE 2007 SERVER PERMISSIONS FOR A SERVICE ACCOUNT)
get-mailboxserver "<mail_server_name>" | add-exchangeadministrator "BESAdmin" –role ViewOnlyAdmin

get-mailboxserver "<mail_server_name>" | add-adpermission –user "BESAdmin" –accessrights ExtendedRight –extendedrights Send-As, Receive-As, ms-Exch-Store-Admin

bflores

(TO ADD POP3 SERVICES TO EXCHANGE 2010)
Set-service msExchangePOP3 -startuptype automatic
Set-PopSettings -LoginType PlainTextLogin
Start-service -service msExchangePOP3
Set-CASMailbox -Identity "jsmith" -POPEnabled $true

bflores

(TO GET A LIST OF MAILBOX SIZES)
Get-MailboxStatistics -Server CASSERVER | Select DisplayName, ItemCount, TotalItemSize | Sort-Object TotalItemSize -Descending

(TO EXPORT A LIST OF MAILBOX SIZES TO A TXT FILE)
Get-MailboxStatistics -Server CASSERVER | Select DisplayName, ItemCount, TotalItemSize | Sort-Object TotalItemSize -Descending | Export-CSV C:\MBSizes.csv