Message in a bottle – The Box

Message in a bottle – The Box

This will seem dumb, but do you need a message box in your script? Normally no, but when you are using a script for an end-user, you might need it. So, let us take a look at how to do it real quick. The Script function Invoke-SHDMessageBox { [cmdletbinding()] param (...

read more
Print to All printers!

Print to All printers!

Recently I came into a company where their printers were called printer 1, printer 2... and so on and so forth. It was amazing. No one knew which printer went where, and I was asked to make some kind of sense of it. Since I had the support of the people, why not print...

read more
Convert a Mac Address to a CIDR with Powershell

Convert a Mac Address to a CIDR with Powershell

Today, I needed to convert a mac address to a CIDR. The lesson I learned about this is to go back to the basics instead of looking around for a quick answer. So, to the basics first. A mac address is a 4 octet number that represents a binary position. It ranges...

read more
1000 Faces

1000 Faces

Need 1000 or unique user photos for your lab? There is a great website for just such a thing. https://thispersondoesnotexist.com/image. Let's break down some code to see how we can pull a few hundred pictures. The first thing we need to know is how many we want. We...

read more
Numlock On Startup

Numlock On Startup

I hate it when I start up my PC and my number lock is turned off. Did you know you can set this to be automatic. Yep that's right, automatic. Start up powershell as administrator and run the single line of code below. Then you should be set to go. Set-Itemproperty...

read more
Tattooing with Group Policy

Tattooing with Group Policy

No, we are not using group policy to put your skull and crossbones tattoo on people. Tattooing is in reference to policies that make changes to the registry that are not removed after the policy is removed. These changes are Permanent and require the admin to manually...

read more
2FA and Outlook

2FA and Outlook

A friend's company turned on 2fa for their office 365. When people logged into office.com they were prompted to 2-factor authenticate with the system. Some choose to call in, some choose text, and others choose the app. It was doing good, but outlook gave them...

read more
Invoke-SHDMoveFiles

Invoke-SHDMoveFiles

Ever need a service that copies a single folder to multiple locations at once? This script will do just that. It will copy a single location to more than one location and even log the outcomes accordingly. Thus, you will be able to set this one up as a task and run it...

read more

13 + 4 =