Category Archives: PowerShellScript

Install-Module – unable to download error

By | 4th May 2020

When running the Install-Module cmdlet to install a package you may receive an error saying something like: WARNING: Unable to download from URI ‘https://go.microsoft.com/fwlink/?LinkID=627338&clcid=0x409’ to ”. WARNING: Unable to download the list of available providers. Check your internet connection. PackageManagement\Install-PackageProvider : No match was found for the specified search criteria for the provider ‘NuGet’. The… Read More »

Change email address of a Plan in Office 365 planner

By | 8th April 2020

When you add a new plan in the Office 365 Planner, a public group is automatically created with an email address that matches the initial name. It is possible to change the email address of a Plan using powershell. Start Windows PowerShell and run these commands to connect to Exchange Online

Now run this… Read More »

Changing the Primary AD FS server in a farm

By | 22nd January 2019

The need to change which server is the primary server in an AD FS farm only exists in an AD FS environment which is configured to use a Windows Internal Database to store the configuration. If the AD FS farm is configured to use a SQL database is used then all servers are “primary”. Note… Read More »

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 »