How to remove Byte-Order-Mark with PowerShell

Let’s get rid of special characters like , ÿþ, þÿ aka Byte-Order-Mark characters When reading Azure Storage Blobs, you regularly get the BOM bytes back with the content. As a result, you cannot format or convert json to an object, for example. A colleague of mine wrote a function for this in PowerShell. In my … Continue reading How to remove Byte-Order-Mark with PowerShell

July update 1 – Desired state configuration for the modern workplace

A week of Desired State Configuration (aka Configuration Drift) for Endpoint Manager This week is all about Desired State Configuration or Configuration Drift as it is called at Wortell.This week we start with the implementation of DSC for Endpoint Manager. As I understand it from the management at Wortell, no other companies are working on … Continue reading July update 1 – Desired state configuration for the modern workplace

June update 1 – Visual Studio Code and debugging

Starting with something new on my blog! I notice that my work is increasingly focusing on a smaller topic (PowerShell) and that I have less to blog about. I miss blogging, so I came up with the monthly updates.In these updates I want to give an insight into my work & share what I did … Continue reading June update 1 – Visual Studio Code and debugging

Report Mailbox and OneDrive Size in PowerShell via Microsoft Graph API

Report Mailbox sizes, OneDrive sizes, or all in one, with PowerShell and the MS Graph API In the tutorial below I explain how you can: Report Mailbox sizes Report OneDrive Sizes Report both (in one report) In the blog post I use PowerShell and the Microsoft Graph API. I built my own modules around the … Continue reading Report Mailbox and OneDrive Size in PowerShell via Microsoft Graph API

FIX: Install-Package: Access to the cloud file is denied PowerShell

‘Access to the cloud file is denied‘ while installing a PowerShell module? The error ‘Access to the cloud file is denied‘ makes you think it’s the PowerShell Gallery, but it’s probably your OneDrive and the location of your $env:PSModulepath and then probably including the -Scope CurrentUser parameter and variable. There are several things you can … Continue reading FIX: Install-Package: Access to the cloud file is denied PowerShell

How to use Azure Managed Identities with Graph API or other Resources

Microsoft API’s or API permissions for Managed Identities But you can only add Azure RBAC roles to a Managed Identity, right? That’s not true, in the blog post below I explain how you can add resource permissions to a Managed Identity. In my work I mainly use this for Azure Automation. By using Managed Identities … Continue reading How to use Azure Managed Identities with Graph API or other Resources

New PowerShell module for Microsoft Graph API reports

Azure AD & Microsoft 365 reports in a single module In my work we use a lot of Microsoft APIs, especially the Microsoft Graph API.Since the Graph API has many ways to optimize and change in bulk, I started with the Optimized.Mga module. Only thing I noticed was that I often made the same reports … Continue reading New PowerShell module for Microsoft Graph API reports

How to use Key Vault Secrets in Azure Automation PowerShell

Azure Key Vault > Azure Automation Credential Manager Azure Automation has its own Credential Manager.This is the easiest to use, but has no history or version control.So you can’t see when the value was last changed, or who made the change within the portal (this can be done via Log Analytics). The Azure Key Vault … Continue reading How to use Key Vault Secrets in Azure Automation PowerShell

How to start a Runbook on specific Hybrid Worker Azure Automation

Disclaimer: this is a work around that is not always useful I am currently hired by a client who has one Hybrid Worker Group (and to whom we are not allowed to make any adjustments). There are runbooks that have to work with the data from other runbooks, but because the data is so much … Continue reading How to start a Runbook on specific Hybrid Worker Azure Automation

How to use Microsoft Graph REST API Docs for PowerShell users

How to use the Graph API for PowerShellers Before you start, I want to tell you that this is my way of working with the Microsoft Graph API & PowerShell. It may be that you don’t like this & that you prefer another way and that’s fine too. It would be nice if you share … Continue reading How to use Microsoft Graph REST API Docs for PowerShell users