Azure AD – PowerShell Script to Change UPN of All Users in a Group

Imagine that if users in a domain have a UPN suffix which is not a public domain, such as @company.local instead of @company.com.  When those users synchronize into Azure AD for EMS, Intune, O365, etc., then the users’ UPNs will be @company.onmicrosoft.com instead of a friendly @company.com UPN for logging into portals or for enrolling devices. This is an instance...

Read More»

Creating a ConfigMgr SUG for Multi-Reboot Patches with Powershell

Earlier this week, Ben Hunter posted an article with a script useful for excluding multi-reboot updates during a ZTI OS deployment. It reminded me of a project I had that was sitting idle and needed to be finished: a Powershell script to automatically create a Software Update Group containing those multi-reboot updates listed in KB2894518 which are known to disrupt ConfigMgr...

Read More»

Service Manager Discovery Report

I recently built a PowerShell script that creates a discovery report for System Center Service Manager. The idea behind the script was to have something that I could run to gather all of the information I would want about a Service Manager deployment. I searched online and could not find anything so that’s when I […]

Read More»

Service Manager PowerShell Extensions – SCSMPx

Recently a colleague of mine Rob Plank brought some new CMDLets for Service Manager to my attention. These are a part of a PowerShell module that can be installed on your Service Manager server. They are the System Center Service Manager PowerShell Extensions also known as SCSMPx. Here is the official description for them: “The […]

Read More»

Adding Intune to your ConfigMgr lab – Gotchyas!

After Brad Anderson’s speech at System Center Universe 2015 about ConfigMgr and MDM, it seemed time to start seriously looking at Intune and MDM. Guides I was following the very in-depth guides below. Thanks Matt, Kenny, Tim, Pierre, and Benoit for the great guides! Matt Hinson – Blog –  Setting Up Windows Intune/ConfigMgr 2012 R2 with ADFS On-Prem and Azure Lab...

Read More»

Windows PowerShell DSC – classes – resource basics (part 2)

In part one of this miniseries I explained some principals around using the new class keyword in Windows PowerShell DSC resource modules. If you haven’t read that article yet, go find it here: http://www.david-obrien.net/2015/02/windows-powershell-dsc-classes-introduction-part-1/ This part 2 will concentrate on the enum keyword and the three main functions in each resource class. Enum -erate input One of the most important things in every script (no matter what language) is error handling. PowerShell and DSC is no exception here. For me, part of error handling is also to validate input  users can provide your script or application with. Enum is used to implement constant values inside of a variable. A limitation […]

Read More»

Windows PowerShell DSC – classes – introduction (part 1)

The Windows Management Framework 5 (WMF 5) Technical Preview also brought us PowerShell 5, and with that we got Desired State Configuration v2 (DSC v2). I just made that name up, I don’t believe it’s officially called DSC v2. Anyways, with PowerShell v5 we now got two new keywords, called “class” and “enum”. Developers will instantly recognise these two keywords and will also know what to do with them. I’m an IT Pro, not a developer, I had (have) to learn what to do with them. Follow me on my journey to a more “dev” side of the PowerShell world than I was ever used to. PSDSC and classes With […]

Read More»

Slides and code from Oslo User Group

ConfigMgr & PowerShell automation While being in Oslo for NicConf I had the pleasure to do a talk on “ConfigMgr and PowerShell – How to automate tasks in ConfigMgr” at a local Oslo Microsoft User Group. Even though the audience was quite small (10 attendees?), I enjoyed speaking there. It was more interactive than I expected, which was great. As promised, here are my slides (not many, I know, I’m not a Powerpoint guy): Here are some of the commands I used, run them in your test environment and on the ConfigMgr server: Enjoy, David

Read More»

PowerShell DSC session slides from NicConf

If you’ve been to my session on PowerShell Desired State Configuration and are interested in the slides, well, here you go. PowerShell DSC resources The session description: What is Powershell Desired State Configuration and how can you become the captain of that spaceship which is your IT environment? How hard is it really to create your own custom DSC Resource? Follow me on a journey where only the bold have gone before and realised, it wasn’t that hard after all. Download:

Read More»