Welcome to the Jocha blog!

Breaking into a Windows System

Do you ever get that sinking feeling, when you’ve forgotten the root password to your test lab?  Again?

I hate it too!  So I decided to figure out a way around it, using a work around…

Detect and Elevate a PowerShell session

We’ve set out to help a customer with automation within their IT department.
Some daily tasks require an elevated prompt, there is no way around it. But it’s not obvious how to check if the current prompt is elevated, or how to elevate the session. So here is a how-to…

Change the Azure AD Sync Schedule

I finally I got some time to play with the new Azure Active Directory Sync tool and its configuration.

The installation was very straight forward. The step-by-step instruction are provided on MSDN. The administration tools and scripts are located in difference places compared to DirSync which was little confusing in the beginning.

Azure Backup Mail Report Script

Jocha previously released a very popular mail report-script for Windows Backup. A downside with the new Azure backup-agent is that it did not offer mail reports… until today!

Disable Windows 10 Automatic locking screen

We’ve been upgrading a customers environment… for one of their workstation configurations they didn’t want the computers to lock on idle, which is enforced by default.

PowerShell MCP server with Claude Code

PowerShell MCP server with Claude Code

PowerShell can now act as an MCP server, giving AI agents like Claude direct access to your shell session. This post walks through installing and configuring PowerShell.MCP with Claude Code and covers practical IT automation scenarios.

Leveraging AGENTS.md for smarter prompting

Leveraging AGENTS.md for smarter prompting

AGENTS.md is more than a cross-tool fallback config. Structured well for your Azure and Microsoft 365 environment, it eliminates the repetitive context you type at the start of every session and makes every prompt shorter and more precise.

Configuring Claude Code with CLAUDE.md

Configuring Claude Code with CLAUDE.md

A practical guide to configuring Claude Code with CLAUDE.md and AGENTS.md, covering file locations, what rules to include, how to organize rules for larger projects, and how to deploy organization-wide policy files.

Automating Entra ID Group Management with PowerShell

Automating Entra ID Group Management with PowerShell

Introduction Managing groups in Entra ID (formerly Azure Active Directory) through the Azure Portal works fine for a handful of changes, but quickly becomes tedious at scale. Whether you're onboarding a batch of new employees, restructuring departments, or cleaning up...

IT report automation with PowerShell

IT report automation with PowerShell

Most IT teams generate the same reports week after week: license usage, stale accounts, patch compliance, group membership changes. Done manually, these are tedious and easy to forget. Done with PowerShell and GitHub Actions, they run themselves on a schedule and land...

Azure infrastructure with Bicep and GitHub Actions

Azure infrastructure with Bicep and GitHub Actions

Introduction ARM templates have long been the go-to for declarative Azure infrastructure, but their verbose JSON syntax makes them painful to read and maintain. Bicep is Microsoft's answer: a cleaner domain-specific language that compiles down to ARM JSON. Pair it...

Building an MCP server for IT infrastructure

Building an MCP server for IT infrastructure

A walkthrough of building a Python MCP server that gives Claude live access to Microsoft Intune, Entra ID, and Defender for Endpoint, querying your infrastructure directly from the chat window.