Tag: Powershell

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 …

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 …

Monitor changes to Intune using Azure Functions, GraphAPI & PowerShell

In my last post, I showed you how to move a very common task – authenticating into the GraphAPI, up into an Azure Function App. Now that our authentication function has been turned into a REST Endpoint, we can stop focusing on how we get authenticated and start doing some really interesting stuff inside the environment. Case in point, myself and a colleague @OnPremCloudGuy were wondering if we …

Working with GraphAPI & PowerBI the easy way!

I’m sure lots of us out there in the IT world have spent some time with PowerBI with varying degrees of headache-inducing successes. I know myself that working with fairly flat data sources, you can very easily create some incredible reports that will make you look like a data wizard to even the most jaded manager out there, however once you want to start working with complex data …

How to force Intune configuration scripts to re-run

Hi All and welcome. As I am about to reach the pointy end of a project to implement an Intune MDM solution for a client, I’ve taken a moment to take stock of the lessons learned, problems faced and for the most part; the cool things I’ve run into and decided now is the time to start writing about them! Hopefully you find my posts interesting and I …