Message in The Ballon
Do you need something to let your end-user know what's going on? Don't want your end-user to see the program running? Well, PowerShell has the ability to use the system windows notify system. AKA, the message box that pops up on the right of the screen. The first step...
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...
