Deploy Nano Server with a SCCM Task Sequence

One of the cool features that came with Server 2016 is Nano Server. This is a completely stripped down version of Server 2016 that has no UI components and is designed for speed, agility, and lower resource consumption. I decided to try and see if I could deploy this with SCCM. In my investigation, I found out Nano server does not support the SCCM client, so we can not push updates or manage it. So, I’m stuck and can’t continue … Continue reading

Pester Testing .Net with PowerShell Classes

One problem I’ve come across with Pester is it has no good way to Mock .Net objects. This hasn’t caused me too much trouble as I can just wrap .Net methods in functions and mock the function, but I had a case come up where I needed to specify the .Net type in my function parameter, so I couldn’t just wrap this in a function:

As you can see, I’m specifying the type and it is a required parameter, … Continue reading

Episode 03: Nickolaj Andersen

Welcome to the third episode of Community Tools Rule! In this episode, we talk with Enterprise Mobility MVP Nickolaj Andersen. Nickolaj Andersen is the author of the very popular ConfigMgr Prerequisites Tool. You can reach him at: Twitter                                                @NickolajA Blog                                     … Continue reading

Episode 02: Jason Sandys

Welcome to the second episode of Community Tools Rule! In this episode, we talk with Enterprise Mobility MVP Jason Sandys. Jason Sandys is the author of the popular tools Client Startup Script and UI++. You can reach him at: Twitter                                                @JasonSandys Blog                                     … Continue reading

PowerShell Tip: Add Parameters to Registry for Easy Access

I tend to work on large PowerShell scripts that accept parameters. In the past I’ve always defined these parameters in the script while I test, and then I have to go back and remove them when I blog about the script here. I decided I’d figure out an easier way to do this! I’m already using my ISE addon to run scripts in a new PowerShell session, so I decided to edit that to add parameter support! First off, I … Continue reading

Building a SCCM Lab with 1606

One of the things I do pretty often is rebuild my lab. I do this with a series of scripts I posted to GitHub called the EphingLab. I decided to post about my SCCM 1511 install script that not only installs SCCM, but also updates it to the latest version (1606 currently). If you’d just like to get the script and try it out yourselves, the link to SCCM script is here. I’m not going to cover the entire script … Continue reading

How to use PowerShell to start ConfigMgr updates in current branch

I’m one of those people who rebuilds their test lab often. I like to tinker with WMI and all sorts of other things, so I rebuild to wipe all my configuration changes and start fresh. Current Branch has put a wrinkle in this because I could never start the updates automatically with my build script. Well, I’ve figured out how to start the SCCM updates with a script!

The above code will start the KB3174008 update: You can now … Continue reading

Azure Automation Week Concludes! Let’s put it all together!

Whew, this week flew by! We learned how to set up Azure Automation, how to run a runbook with the REST API, how to do a more advanced offline domain join, and how to get input from the SCSM portal. Today, we are going to put all that we learned into a task sequence! First off, we just need a task sequence that installs Windows 10 Enterprise. I used the default task sequence but am joining the computer to a … Continue reading

Azure Automation Week–Get Input from the SCSM Portal

Most of the time when we are imaging computers, there is a reason for it. This reason will be tracked in some form of ticketing system, so why are we asking questions in the task sequence? We have all the answers already! In this post, I’m going to show you how to get the answers to portal questions in SCSM, and then return those as JSON! In order to do this, there are some hurdles we must overcome. They are: … Continue reading

Azure Automation Week: Advanced Offline Domain Join With Azure Automation!

Azure automation week continues! Today we are going to look at joining computers to a domain through Azure Automation. I always liked the idea of offline domain join, but never really used it since I don’t prestage computers. I then got the idea, what if I could join a computer to the domain from offsite without having to prestage it first? To do this, we will need to set some things up! First off, if you want the domain joined … Continue reading