Welcome to the Jocha blog!

Get Active Directory pictures in Windows 10

We have been working on migrating a customer from Windows 7 over to Windows 10. Our goal is to have Windows 8 and 10 clients pull the pictures from Active Directory to the users local profiles.

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.

Uninstall all Java versions

I received an inquiry from one of my mid-size (100-200 users) customers today. They’ve been planning on implementing a new online service which requires the latest Java version.

The clients have a large quantity of outdated versions of Java, which needed to be uninstalled before we deployed the newest version.
They are currently running Windows 7 and Windows 8, so somewhat modern operative systems.

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.

Windows Server 2025 Backup reports with PowerShell and SendGrid

A modernised rewrite of the popular WBAdmin email report script, now compatible with Windows Server 2025 and using the SendGrid REST API instead of SMTP for reliable, credential-free mail delivery.

Automate App Registration Secret Expiry Alerts

Automate App Registration Secret Expiry Alerts

Expired application secrets are one of the most common causes of silent production outages in Microsoft 365 environments. An app registration in Entra ID powers everything from automated workflows and API integrations to third-party SaaS connectors. When its client...

Automate Entra Guest User Lifecycle with PowerShell

Automate Entra Guest User Lifecycle with PowerShell

Learn how to automate the full Entra ID guest user lifecycle using PowerShell and the Microsoft Graph API. This guide covers discovery, stale account detection, notification emails, and safe two-phase removal to keep your Microsoft 365 tenant clean and compliant.

Automating MFA Audits in Entra ID with PowerShell

Automating MFA Audits in Entra ID with PowerShell

Learn how to audit MFA registration status across your entire Microsoft Entra ID tenant using PowerShell and the Microsoft Graph API. Includes filtering, CSV export, and a fully automated scheduled reporting script.

App-Only Auth for Microsoft Graph with PowerShell

App-Only Auth for Microsoft Graph with PowerShell

A step-by-step guide to creating an Entra ID app registration, generating a self-signed certificate, assigning Microsoft Graph API permissions, and connecting with PowerShell for fully unattended automation.

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.