Microsoft Graph API
Back in November Microsoft released v1.0 of graph API. Along with it is a large library of documentation. I have been hesitant about making a blog post about Graph for a while because the community seemed to be split on how PowerShell should interact with it. Now the...
Powershell – Open File Dialog
I was building a script for my manager the other day and inside the script, he wanted us to triple check the naming of a file path. He went as far as to have us copy the file path from the browser. Paste it, Then click rename on the file itself and copy that and paste...
Fact Prank with Powershell
I love a good prank. Sometimes pranks need to challenge us. I coded a good prank and it requires a scheduled task and a little bit of PowerShell. The idea behind the prank is the computer will alert you with a beep, then read a random fact to you. Then it closes off...
Batch – Chrome and Self-built URLs
A previous job of mine had a unique issue. Unstandardized google chromes and self-generated icons. Both of these issues caused a lot of heartaches. Today I will show you how I solved the issue of unstandardized google chromes with batch. At the time the company's...
Group Policy How-To – Folders
Whenever we get a new client, one of the first things we do is create a new folder on the root of C called temp. If that client has a group policy we create a policy just for that. This guide is a simple one, it's how to create a folder with group policy. This post...
Powershell HTML Reports
From time to time, you will be asked to create a web report with data that can only be easily obtained by PowerShell. There are hundreds of modules out there that can do this, which is very nice. This blog isn't about those modules, but instead some tricks I have...
Group Policy Troubleshooting – Stale DNS
This one was a fun one that really threw me for a loop. DNS is an issue no matter where you go. Recently facebook showed the world how DNS can take everything down. DNS in your domain is very important to keep alive and healthy. Having items sit in your DNS is deadly...
Enable/Disable/Reset MFA with Powershell
How does one enable, disable, and reset a user's MFA in Office 365? I was surprised by how much is required for enabling MFA. Enable MFA The first thing we do is Get the User from the Get-MsolUser. $user = Get-MsolUser -UserPrincipalName $UPN Next, we create a Strong...
Group Policy Troubleshooting – Delegation
A while back, a client called and told me he made a few new group policies, and they were not working as expected. He stated some policies applied to the wrong users, while another didn't apply at all to any users. He stated he set the security group correctly. When I...