Install-Module – unable to download error

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 …
Continue reading Install-Module – unable to download error

Change email address of a Plan in Office 365 planner

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 …
Continue reading Change email address of a Plan in Office 365 planner

Changing the Primary AD FS server in a farm

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 …
Continue reading Changing the Primary AD FS server in a farm

Dynamic AD Security groups

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 …
Continue reading Dynamic AD Security groups

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

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 …
Continue reading How to fix: Get-ADGroupMember : The size limit for this request was exceeded

How to downgrade the Domain and Forest functional level

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 …
Continue reading How to downgrade the Domain and Forest functional level

Get all DC’s, FSMO role holders and uptime

As an IT consultant I often visit new customers and it is always good practice to just double check which DC’s are available in the organization, which sites they belong etc. To make it easy for myself I created a script that will get the: DC’s in the domain Uptime (in Hrs.) Site the DC …
Continue reading Get all DC’s, FSMO role holders and uptime