Wednesday, February 8, 2012

Useful Commands (Personal)

# Create a new mail contact
new-MailContact -alias zawhtet -name 'Zaw Htet' -org 'IT Team' -ExternalEmailAddress zawhtet@mmx.com

# Mail-enable an existing contact
enable-Mailcontact testcontact -alias enabledmc -ExternalEmailAddress enabledmc@example.com

# Create a new mail user
new-MailUser -alias testmc -name TestMailContact -org Users -ExternalEmailAddress textmc@example.com

# Mail-enable an existing user
enable-MailUser testcontact -alias enabledmc -ExternalEmailAddress enabledmc@example.com
------------------------------------------------------------------------------------
- Remove-OwaVirtualDirectory
- New-OwaVirtualDirectory
- iisreset /noforce
-------------------------------------------------------------------------------------

- ExportEdgeConfig.PS1
- Export-TansportRuleCollection

-------------------------------------------------------------------------------------

- Suspend-MailboxDatabaseCopy

-------------------------------------------------------------------------------------

- Retention Policy Tag
- Default Policy Tag
- Personal Policy Tag

-------------------------------------------------------------------------------------

- Set-mailbox manager -BypassModerationFromSendersOrMembers

-------------------------------------------------------------------------------------

- Set-MailboxDatabase -Identity "Mailbox Database" -PublicFolderDatabase "PublicFolderDB1"

------------------------------------------------------------------------------------------------

- Enable-TransportAgent -Identity "Address Rewriting Inbound Agent"
- New-AddressRewriteEntry -Name "ULSAN to YANGON" -ExternalAddress kmmx.com -InternalAddress mmx.com

-------------------------------------------------------------------------------------------------

Add-AttachmentFilterEntry -Name image/jpeg -Type ContentType

Remove-Mailbox -Identity zawhtet@mmx.com -Permanent $true

Set-Mailbox zawhtet -LitigationHoldEnabled $true

Get-PublicFolderItemStatistics -Identity "\ExpenseReport\2009"

Set-MailboxCalenderSettings TraningRoom -AutomateProcessing:AutoAccept

Get-Mailbox -Database DB01 |Format-Table Name,ProhibitSendQuota,Database

Set-Mailbox -Identity zawhtet@mmx.com -IssueWarningQuota 188743680 -ProhibitSendReceiveQuota 293601280 -UseDatabaseQuotaDefaults $false

Set-EmailAddressPolicy

disable IPv6 on windows 2008

reg add hklm\system\currentcontrolset\services\tcpip6\parameters /v DisabledComponents /t REG_DWORD /d 255

No comments:

Quote of the Day