Scripting

## Getting Around the Basics of Azure Automation for Office 365

One of the the things that we’ve learned about the cloud over the past few years is that you still need an environment (a utility server, an app server, a something) to run batch jobs and custom scripts against your environments. … [ Continue reading ]

Scripting

## Generate a list of mailboxes whose litigation hold duration is less than a week away

While many people use Office 365 retention policies as part of their data governance strategy, there are many customers who either do not enforce retention or do so only for items under some sort of litigation hold.

In the olden days, when storage was at a premium, it was much more common to handle things this way. … [ Continue reading ]

Scripting

## Update to the WipeExchangeOnlineMailbox tool

Who knew you’d need an update to a tool meant to delete things?

After working with a partner today and an out-of-control email application spamming user mailboxes, we decided an update was necessary.  Outlook became unusable with several hundred thousand messages in Deleted Items. … [ Continue reading ]

Information

## Update to the Get-UserHoldPolicies Tool

A new year, a new update for Get-UserHoldPolicies!  Woo!

I stumbled across some additional information today regarding deciphering hold policies for mailboxes while troubleshooting another issue and decided to update my Get-UserHoldPolicies tool to reflect it.

The core pieces that I added:

• Identifying Skype policies (as prefaced by sky in the InPlaceHolds property of a mailbox)
• Identifying excluded mailbox policies (as prefaced by -mbx in the InPlaceHolds property of a mailbox)
• Disposition action for items at the end of a retention period:
• Delete only
• Do nothing after retention period
• Delete after retention period

You can see a few of the new options here. … [ Continue reading ]

Scripting

## Searching the Office 365 Unified Audit Log for Specific Activities, Sites, and Users

Last week, I was working with a large government customer in a consolidated tenant (read: all agencies in a single, centrally-managed tenant).  One of the questions that was presented was how to search and filter the audit log for entries relating to the following categories:

• Files shared by an agency or department’s users
• Files accessed in an agency’s SharePoint site collection

To that end, I based together this script. … [ Continue reading ]

Scripting

## Iterating hash values to a log file

While working on my last script, I was trying to figure out the best way to write the values stored in a hash table for the purposes of splatting out to a log file.

Consider:

$parameters = @{}$parameters.Add("Parameter1","Value1")$parameters.Add("Parameter2","Value2")$parameters.Add("Parameter3","Value3")

I was using a modified version of my logging function, which is basically a wrapper for Add-Content with parameters for log detail/types, colors, and output display.… [ Continue reading ]

Configuration

## Migrating from Exchange Online eDiscovery and In-Place Hold to the Security & Compliance Center

One of the issues that some of my larger customers have been dealing with is the lack of tooling and planning around moving legacy Exchange Online In-Place eDiscovery & Holds to the new(ish) Security & Compliance Center.  Our direction has been to either let them age out or manually recreate them the Security & Compliance Center.… [ Continue reading ]