Want to control the properties of e-mail messages sent to a specific domain in MS Exchange powershell

Create a new remote domain by using the New-RemoteDomain cmdlet.


New-RemoteDomain -Name “Chirkut.com Configuration” -DomainName chirkut.com

Then modify the properties that you want for this remote domain by using the Set-RemoteDomain cmdlet:

Set-RemoteDomain “Chirkut.com Configuration” -AutoReplyEnabled $True -AutoForwardEnabled $True

Forgot what the available parameters are on a cmdlet in powershell for exchange

Just use tab completion! Type:

Set-Mailbox -<tab>

When you type a hyphen (-) and then press the TAB key, you cycle through all the available parameters on the cmdlet. Want to narrow your search? Type part
of the parameter’s name and then press the TAB key. Type:

Set-Mailbox -Prohibit<tab>

Did you know that you can allow users in your Exchange organization to publish their calendars to the Internet so that anyone can view their free/busy availability? Just configure a few settings to get started. To enable an Outlook Web App Virtual Directory and allow calendar publishing,

Set-OWAVirtualDirectory -Identity <Client Access server> -ExternalURL <External URL for Client Access server> -CalendarPublishingEnabled $true

To set the web proxy for the Mailbox server, type:

Set-ExchangeServer -Identity “<Mailbox server>” -InternalWebProxy <webproxy URL>

Finish by setting up a sharing policy for the “Anonymous” Internet domain and assign the sharing policy to a user mailbox. First type:

New-SharingPolicy -Name “<policy name>” -Domains ‘Anonymous: CalendarSharingFreeBusySimple’ -Enabled $True

Then type:

Get-Mailbox -Identity <user alias> | Set-Mailbox -SharingPolicy “<policy name>”