Author Topic: Exchange 2010 - Powershell Command Line  (Read 6914 times)

admin

  • Administrator
  • Newbie
  • *****
  • Posts: 7
  • support.cognetic.com
    • View Profile
    • cognetic.com
Exchange 2010 - Powershell Command Line
« on: January 26, 2012, 01:46:30 AM »
(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
« Last Edit: January 31, 2012, 04:45:47 PM by admin »

bflores

  • Administrator
  • Jr. Member
  • *****
  • Posts: 60
    • View Profile
Re: Exchange 2010 - Powershell Command Line
« Reply #1 on: October 16, 2012, 11:47:46 AM »
(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

  • Administrator
  • Jr. Member
  • *****
  • Posts: 60
    • View Profile
Re: Exchange 2010 - Powershell Command Line
« Reply #2 on: January 30, 2013, 04:24:25 PM »
(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