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…

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!

Installing HP branded Windows on a Virtual server

My customer has bought a Hewlett-Packard server with a Windows Server 2012 ROK (Reseller Option Kit) license.
However this customer had some issues with the installation of the license on the Hyper-V guest server. Since the Windows server does not recognize the ‘hardware’ as a Proliant server, licensing will not succeed.

However there is a simple solution…

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…

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.

Sending Emails via Powershell

Sending Emails via Powershell

Lately I’ve been setting up a back-end script for one of our customers. The full script creates Domain users, generates passwords and emails the manager/CEO the user information.

This post will only contain the Email function, more functions will be posted later.

SCCM 2012: Create Collections and AD Groups

SCCM 2012: Create Collections and AD Groups

After setting up a new domain and deploying SCCM 2012 I came to realize how much work it actually is to set up new applications.
I have made a script which creates AD groups and Collections.

Convert VBS to Powershell

Convert VBS to Powershell

I’ve always liked VB scripting, but I have officially converted to Powershellism (?!).
If you’d like to convert your old VBS scripts to Powershell check this out…

Printer Problem 0x00000006 and 0x00000002

Printer Problem 0x00000006 and 0x00000002

I started my day troubleshooting a Windows 7 SP1 client which couldn’t install a specific printer. After verifying that the server was not the issue I started looking into the computer configuration…

Actions in Configuration Manager Client

Actions in Configuration Manager Client

Understanding how the Configuration Manager client works is a crucial part of troubleshooting.
Here you will find information about how to retrieve policies from the SCCM server.

WordPress: Increase Number of Posts in Search Results

WordPress: Increase Number of Posts in Search Results

The basic goal of a site search is to find information quickly. Because searches rely on the same setting as any other WordPress page when determining the number of listings to show, we have to get a little creative in order to show a different amount.

Troubleshooting Content Mismatch Warnings on a DP

Troubleshooting Content Mismatch Warnings on a DP

You might see content mismatch warnings in System Center 2012 Configuration Manager when content validation runs and determines that there is a discrepancy between the expected list of packages in WMI on the distribution point and the packages in the content library.

Software Update Content Cleanup in SCCM 2012

Software Update Content Cleanup in SCCM 2012

In System Center 2012 Configuration Manager, Microsoft added the capability to automatically remove software
update content from distribution points when that content is related to expired updates.