Category: Powershell

Powershell Scripts. – Please Note – Running any of these scripts assumes that you have read the script and understand their function. We do not guarantee that it will work in your environment and choosing to utilize our script does not mean we will support it or you in doing so. Use at YOUR own risk.

Automatic Deployment Rule – Upate ID Translation

If you’ve ever worked with Automatic Deployment Rules, at some point an update has failed to download. While you might be familiar with the RuleEngine.log file, did know the “updateID” is the “CI_ID”? If you’ve ever tried to find a software update via CI_ID, you know you’re going to one of two places, and neither ...

Query Defender ATP for Vulnerabilities: Part 1

Vulnerability Management is HARD Understanding patch compliance is mission critical task for all organizations regardless of their size or affiliation. What a lot of organizations struggle with is the different between vulnerabilities and patch compliance. As a result a lot of companies end up buying expensive third party tools to scan their environment for vulnerabilities, ...

Mr. Shiba What Time is it? – Get time remotely.

If you’ve ever worked in a large distributed environment you’ve likely experienced time issues. Maybe it’s not even so much an issue as you just want to know where the heck in the world a machine is. Especially in the current state of the world where almost every other day I wake up and go ...

Finding OUs with Workstations – Powershell performance is weird

I was recently asked to implement LAPS for a customer. Nothing unusual there. This particular environment was new to me which meant it was time to investigate their OU structure. Why does OU structure matter? When implementing laps there are a few things to keep in mind. First, you need to extend the schema. Then ...

PowerShell Copy To Clipboard

Sometimes copy paste is just really hard. If you’ve ever found yourself working through multiple RDP sessions you’ve probably attempted to copy or paste something in a PowerShell session only to have it fail horribly. Maybe you’ve been trying to look at some returned data only to have it output in some weird list. CLIP ...

VSCode – PowerShell Formating

If you’ve been writing in Powershell for any period of time, you’ve at some point encountered one of the various Powershell formatting arguments. It’s always some type of semantic detail. While this post can’t fix all of those it certainly can help solve a lot of the basic arguments including how to format functions, parenthesis ...

PowerShell and #Requires

Did I run that script as admin? Have you ever written a Powershell script only to get slapped in the face with a bunch of angry red text and an access denied message? I know at some point I have. The logical course of action is to of course google “how do I make sure ...

Common VSCode Extensions

Ever since MMS2019 – I’ve been asked and have seen numerous questions about what VSCode extensions should someone get started with. While everyone needs different things here are a few extensions I think anyone working in PowerShell should use. NOTE: If you want to skip to the full list of my favorite extensions just scroll ...

How To: Import the ConfigMgr Module – $Profile Style

Setting the scene If you are like me you probably find yourself frequently in a spot where you would like to import the Configuration Manager module to do this one thing. No one wants to open the console and load the ISE. No one wants to have to use the Snippet, I just want to ...

How To – Find All DPS missing NO_SMS_ON_DRIVE on C:\ – And Fix it

C:\ Drive on my DP ran out of space… again… Something that constantly comes up is forgetting to place the NO_SMS_ON_DRIVE.SMS file on new distribution point servers. While this isn’t the end of the world its certainly frustrating when the C:\ drive runs out of space. Just in case you don’t know what I’m talking ...