Powers Hell merchandise is here!

For those that don’t know, aside from meeting incredibly smart people and sharing knowledge, the main reason I love going to conferences is that I get to trade “nerd shirts” with conference attendees. Every conference I attend, I spend time to design and print “one-off” t-shirts to give away and trade. Shirts are inherently cooler than business cards and I take my shirts very seriously. So with that …

Synchronize SharePoint sites with Intune & PowerShell

I recently spent some time with my colleague and frequent collaborator Steven Hosking. We spoke about a solution I came up with to synchronize SharePoint sites to devices using PowerShell & Intune. This is something I’ve had in my drafts for quite a while, but it kept ending up being too long to write about. As it turns out, Steve ( and Adam) runs a very valuable and …

A long time between drinks…

Hi All, Just a quick post to anyone who follows this site to apologize for the significant lack of content over the last few months. A combination of sickness, house buying & increased workload has left me recently unable to contribute quality content in the way that I’d like to. While I’ve been absent on this site, I’ve still been active, contributing to other training resources & presenting …

Organize AutoPilot devices in dynamic AAD groups using GroupTags & PowerShell

Don’t ever say Microsoft doesn’t listen! One of my biggest pet peeves was solved at the beginning of the month when Microsoft announced the ability to edit device group tags! This doesn’t sound like much, but it essentially unlocks the potential of group tags that was never really there before – we can now use group tags to dynamically control device group membership. While there have been quite …

Upload files to Azure File Share using PowerShell & Microsoft Flow

I’m a big fan of using Start-Transcript in my application install wrappers as it provides a very neat and tidy way to capture the output of everything that happens during the installation process and as such, all of the applications I package end up storing log files locally and I passionately and repeatedly urge my support staff to view these log files to identify issues during deployment. However, …

Control advanced power settings with PowerCfg & PowerShell

One of the most common questions I get asked about Intune & Modern Device Management is “Would it be possible to do X with Intune?” With the native support to deploy and run PowerShell scripts in either user or system contexts, this allows my answer to always be “Yes! We can do anything you want – you just need to decide on how much time you wish to …

Getting your AAD Tenant Id without authentication!

Another quick post – I’ve been doing some work with silent configuration of OneDrive and the new Known Folder Migration GPO solution all being deployed via Intune for multiple clients. One thing that is required for the KFM solution is the Azure Tenant Id. Being the nerd I am, I wanted to see if I could get the Id without having to log in to the tenant. After a quick …

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 …