Graph Week – Exploring the MSGraphAPI Cmdlets

Yesterday, I showed you how to install and start with the MSGraphAPI cmdlets. Today we’re going to explore them and see all that you can do with them! We learned how to authenticate yesterday, and run the first command: Get-GraphUsers. What does this command return? I can use GetType to see: It’s not just returning a hash or array, it’s returning a custom class called GraphUser_v1. What is this object? This is a custom object created for the cmdlets that … Continue reading

Graph Week – Getting Started with Graph and PowerShell!

Welcome to Graph week! This week we are going to look at how we can automate common tasks with PowerShell and Microsoft Graph. To help us out, I am working on cmdlets called the MSGraphAPI cmdlets. They are in beta now, but far enough along to do anything you need to do in Graph! What is Microsoft Graph? Graph is one endpoint to manage multiple Microsoft APIs. What do I mean by that? In the Graph cmdlets, you can simply … Continue reading

Episode 04: Trevor Jones

Welcome to the fourth episode of Community Tools Rule! In this episode, we talk with Trevor Jones, author of many tools including the Task Sequence Monitor! Trevor Jones is a Senior System Administrator from the UK. He can be reached at: Twitter                                                @trevor_smsagent Blog                           … Continue reading

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