Launch ClientFaux and click to the Configure CM tab and provide your CM Server FQDN and three letter Site code.
Then click to the Device Naming page and provide your desired naming pattern and starting and ending numbers.
You can also increase the number of threads (I’ve tested up to 12 threads and seven is a good happy medium for resource usage, but feel free to go crazy).
Then to see it in action…click to the ‘Ready’ page and hit ‘Ready!’ and away we go!
The Big Warning
This is designed for DEMO or TestLab CM instances. I do not recommend running it against your Production CM instance as it can create thousands and thousands of CM clients if left running for a few hours! This can be hard to filter out of data for reporting, dashboards and the like.
Do you ever need to quickly hop between PowerShell tabs in VScode, or have data you want to move from one session to another?
Sure, you could output your data into a .CSV file, a .JSon file, or one of hundreds of other options. But sometimes it’s nice to just paste right into a new window and get up and running again. For that, I wrote this small little cmdlet.
Why? Because until recently, I was notorious for leaving Write-Debug statements everywhere. I mean, just take a look at my local git folder.
My code was just littered with these after practically every logical operation…just in case I needed to pause my code here at some point in the future. Actually, someone could look at my code in the past and every Verbose or Debug cmd was basically a place that I got stuck while writing that cmdlet or script. I mean, using the tools is not wrong, but it always felt like there should be better ways to do it.
Recently, I have learned of a much better way and I want to share it with everybody.
Why not use Write-Debug?
Write-Debug is wrong and if you use it you should feel bad
I’m just kidding! You know, to be honest, something really gets under my skin about those super preachy posts like you always find on medium that say things like ‘You’re using strings wrong’, or “You’re all morons for not using WINS” or something snarky like that.
It’s like, I might have agreed with them or found the info useful, but the delivery is so irksome that I am forced to wage war against them by means of a passive aggressive campaign of refusing to like their Tweets any more as my retribution.
That being said, here’s why I think we should avoid Write-Debug. It ain’t wrong, but you might like the alternative better.
While I’m working on some longer posts, I thought I’d share a quick snippet I came up with this weekend as I was backing up a number of old DVDs of family movies.
FFMPeg has the awesome ability to join a number of video files together for you, but the syntax can be kind of strange. Once I learned the syntax, I sought to make sure I never had to do it again, and created this cmdlet.
In this basic version, it will join every file in a directory, giving you Output.mkv. Be sure your files in the directory are sequentially ordered as well, to control their position.
Ensure that FFMpeg’s binaries are available in your Path variable as well.
Later on, I may add the ability to provide which specific files you want to join, if desired 🙂
Recently at work, we had a task come up which saw us needing to move tens of thousands of devices between collections in CM. We decided to run some tests to find the fastest way! We compared:
The SCCM 1511 Era Collection Cmdlets
The newly released speedier Collection Cmdlets which shipped with Tech Preview 1803
Using Keith Garner’s super powerful CMPSLib Module
Query Based Membership
AD Group Query Membership
Direct SQL Membership Tampering ☠
I’d always kind of wondered myself, so it was a fun challenge to come up with some hard numbers. And for the last item in the list…this is just for fun, I do not recommend using this in your production…or your testlab. Or anywhere.
The test lab
All testing occurred in my VM Testlab, a Ryzen 7 1700 with 64 GB of RAM, with storage served on NVMe m.2 SSD drives. A beastly machine (also hello to viewers from the year 2025 where we have 6TBs of storage on our phones and this is laughably quaint. Here in 2018, we believed more RBG = more better, and we were happy, damn it!) Continue reading →