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…

Display all saved WiFi Passwords

We’ve all been there, wireless passwords tend get lost.

There are several tools to retrieve the missing information, but I strongly believe that the less stuff you download from the web, the safer you are. So why not use the built in functions instead?

Office365 Safe Attachment Delay Report

Recently the Helpdesk have been getting cases about slow delivery times due to Office 365 ATP Safe Attachments. We have created a script to retrieve the data from Exchange Online, and then used Power BI to visualize it.

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…

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.

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.