Month: August 2018

Set multiple registry values to all users HKCU profiles using PowerShell & Active Setup

This is a quick one – an improvement on an almost perfect script that doesn’t quite work how it should. the script Set-RegistryValueForAllUsers.ps1 found on the TechNet Gallery has one major fault. If you try and apply more than one value at a time, the last applied value is overwritten, leaving you at the end of the script with the last value and nothing else. Very simple change, …

Authenticate to Microsoft Graph in PowerShell in two lines of code!

TWO LINES???!!! you bet!! One of my biggest gripes over the last few years with IT blogs and general talk of working with Azure & PowerShell is how much time is wasted on talking about how to authenticate into Azure\Graph\AAD. I’d suggest it is one of the harder hurdles to getting into the modern DevOps way of working. OAuth & OAuth 2 can be a very daunting thing …