Tag Archives: Powershell

Finally! Sent Items behaviour control for User mailboxes in Exchange CU6.

From Exchange 2016 CU6 and for Exchange Online customers it is now possible to control the “Sent Items” behaviour of delegated User Mailboxes. This control is available for shared mailboxes since 2015.

How does it work?

Let’s say you have the following scenario:

  • Jack is the CEO of the company
  • Iris is a delegate on Jack’s mailbox; Iris has Send As rights on Jacks mailbox
  • When Iris sends an email as Jack, the mail will only be in Iris’s “Sent Items” folder.

With the new feature enabled, the email will not only be in Iris’s “Sent Items” folder but both Jack and Iris will have the message in their “Sent Items” folder.

How to enable these settings?

These settings have to be set via powershell and cannot be set via the EAC / o365 portal as with shared mailboxes.

To enable these settings for “Sent On behalf”:

Enable message copySent On Behalf of the delegator For emails Sent On Behalf of the delegator:

Set-Mailbox <delegator mailbox name> –MessageCopyForSendOnBehalfEnabled $true

Disable message copySent On Behalf of the delegator For emails Sent On Behalf of the delegator:

Set-Mailbox <delegator mailbox name> –MessageCopyForSendOnBehalfEnabled $false

To Enable these settings for “Sent As”

Enable Message copy:

Set-Mailbox <delegator mailbox name> –MessageCopyForSentAsEnabled $true

Disable Message copy:

Set-Mailbox <delegator mailbox name> –MessageCopyForSentAsEnabled $false

 

 

Monitor File Cluster Resources

powershell

When a (file) cluster resource failover occurred it is not always desirable to do an automatic failback (you probably would investigate the reason for the failover before performing a failback of the resources). Because of this I have created a Powershell script for use with file clusters to monitor file cluster resources, it works pretty much like the Powershell script I made for monitoring Exchange Database failovers (https://netflex.nl/exchange-database-activation-preference ).

The Powershell script monitors the preferred owner of a resource. In the event the Powershell script detects a resource is not running on the preferred owner, the Powershell script will send an email alert to a predefined recipient.

Continue Reading

PowerShell script for archiving/compressing files

powershell

The following script archives files into zip files from a particular directory that are older than x days. Convenient to zip eg IIS logs. Of course, the script may also be used for other purposes.

 

Continue Reading

Vraag ActiveSync Devices met een Exchange partnership op

powershell

Als u benieuwt bent welke devices uw medewerkers gebruiken om hun mail te synchroniseren kunt u onderstaand script gebruiken. Dit script exporteert de ActiveSync device gegevens naar een CSV file met o.a. het type device, het model, welk OS er op het desbetreffende device draait, de gebruiker van het device en of het device geblokkeerd is of niet.
Continue Reading

Scroll to Top