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...
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...
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...
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...
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...
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...
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...
