Category Archives: PowerShellScript

Dynamic AD Security groups

By | 26th February 2018

Active Directory does not offer any build in Dynamic Security groups, whereas Exchange does offer Dynamic Distribution lists. So to solve this problem you could run a PowerShell script based on users in an OU. The script below will scan one or more OU’s and add each user account to the AD Security group you… Read More »

How to fix: Get-ADGroupMember : The size limit for this request was exceeded

By | 16th February 2018

Working in a larger Active Directory environment I occasionally got the error:

When trying to read all the members (recursively) of an AD Group. This was annoying since in the alternatives are limited especially when using the -recursive option. You could try with:

or

However these don’t have the recursive option. And… Read More »

How to downgrade the Domain and Forest functional level

By | 24th May 2017

With older versions of Windows Server it was not possible to downgrade the domain and forest functional level once upgraded. However this has changed since Windows Server 2012R2, using PowerShell you can now downgrade the Domain and Forest functional level. To do so follow these steps: 1. Log on to the domain controller as domain… Read More »

How to add custom branding to Office 365 Message Encryption

By | 15th May 2017

In an earlier post I wrote how you can setup and enable Office 365 message encryption. In this post I will explain how you can apply custom branding to customize the Office 365 Message encryption email messages and the look of the message viewing portal using PowerShell cmdlets. You can customize the following items of… Read More »

The total data received from the remote client exceeded the allowed maximum

By | 7th May 2017

When you have a large environment and you are running a command such as Get-Mailbox -ResultSize Unlimited | Get-MailboxStatistics | select …. you might have seen this error:

  There are a couple of solutions or workarounds. One solution could be to split the command and run it against each database instead and then… Read More »

Lync event ID 1017 – File transfer failed for some replica machines

By | 1st May 2017

When you receive event id 1017 LS File Transfer Agent Service you can easily check if this is a persistent error or an incident. The eventvwr message which is located in: “Applications and Services logs \ Lync server” will look something like this:

  First open the Lync Server Management Shell and type the… Read More »