Office 365 – Report on Shared Mailboxes

A quick one-liner, which pulls back a list of shared mailboxes, last logon time, size in MB and item count. Connect to your EXO with connect-exchangeonline then run the below (This can take a while of you have a large amount of shared mailboxes) Get-Mailbox -RecipientTypeDetails SharedMailbox -ResultSize:Unlimited | get-mailboxstatistics | select displayname,lastlogon*,@{name=”TotalItemSize (MB)”; expression={[math]::Round(($_.TotalItemSize.ToString().Split(“(“)[1].Split(” …

Read more

AWS Workspaces – Clean up orphaned Managed AD objects

If you manage a large number of AWS workspaces, chances are you will end up with orphaned computer AD objects cluttering up your domain. This script pulls a list of workspaces, compares it to the list of machines in AWS managed AD and removes any AD computer object without a corresponding workspace. This script requires …

Read more

O365 Shared Mailbox sent items

By default, when “sending as” a shared mailbox, the sent items go into the users sent items folder. Unfortunately, it is not possible to change this to be the shared mailbox, but it is possible to put a copy in the shared mailbox’s sent items folder. The below script will enable this for all shared …

Read more

O365 Shared Mailboxes – sent items go into users folder

The default behaviour for items sent from a shared mailbox is to go into the users sent items. We had a requirement to save a copy in the shared mailbox sent items folder. this script modifies the mailbox so that email sent either “on behalf” or “as” the mailbox get copied into the shared mailbox’s …

Read more

Removing Always On VPN Tunnels

Recently, we were in a situation where we needed to remove some left over Always-on VPN user tunnels from a lot of Windows 10 machines. (We had duplicate profiles, and this was a tidy up exercise) The following scripts address this issue, it gets a list of all the VPN connections and then removes all …

Read more

Show meeting details for an Office 365 Room calendar

The default behavior in Office 365 is to only show meetings in room calendars as ‘busy’ – sometimes you want people to be able to see the details. This is easily changed through a couple of lines of PowerShell. This is caused by the permissions on the ‘default’ user. Let’s look at the permissions – …

Read more