Welcome to the Jocha blog!

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…

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.

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.

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!

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.

Task Sequence error 0x00001F40

Task Sequence error 0x00001F40

I created a task sequence to deploy Windows 2008 R2 via SCCM 2012 (MDT integration). After selecting the TS the installation proceeded for about 5 minutes and then gave me the error…

Create domain groups

Create domain groups

Heres a small VBs script for fast Active Directory group creation.
Paste the following code into a text file and rename it to “CreateADGroups.vbs”.