Powershell script collection for ConfigMgr 2012

This post will contain all my scripts and snippets in zip format for download, that I use to manage my ConfigMgr environments or anything related to System Center 2012. I’m going to update this post with every script I write. These scripts should all work, you probably need to adjust some of those scripts to your environment as some of them still have hard-coded stuff in them. As always: No warranty Download all in one: 

Upcoming speaking gigs 2014 / 2015

Seems to be my ‘year of conferences’ this year. Since moving to Australia in March 2014 I didn’t have a quiet and laid back month; and it won’t change in the next few months. Here’s my speaking schedule up until next February: Topic Date Event Powershell Desired State Configuration 27/10/2014-28/10/2014 TechEd Australia Sydney Service Management Automation / Azure Automation (with Trevor Sullivan) 11/11/2014-13/11/2014 Midwest Management Summit (Minneapolis / USA) Powershell Desired State Configuration (with Jeff Wouters) 11/11/2014-13/11/2014 Midwest Management Summit (Minneapolis / USA) Powershell Tips ‘n Tricks (co-presenting with Jeff Wouters and Trevor Sullivan) 11/11/2014-13/11/2014 Midwest Management Summit (Minneapolis / USA) Service Management Automation and ConfigMgr 11/11/2014-13/11/2014 Midwest Management Summit … Continue reading

ConfigMgr evaluation expired – what now?

I just rescued myself out of a pretty embarrassing situation… My home lab is managed by ConfigMgr and I am using the eval version for it, all good so far. System Center 2012 eval versions are valid for 180 days, after that you either need to reinstall them or add a license key, whichever you like.   How to add a license key to Configuration Manager post install Adding the license key to ConfigMgr post install is pretty easy. Just run the setup.exe from your local ConfigMgr Installation directory. DO NOT use the installation media, it won’t work! Choose “Perform Site Maintenance or reset this site”: The next page normally … Continue reading

ConfigMgr Application catalog broken

I just had an issue at a customer’s site where the ConfigMgr Application Catalogs would complain. Here’s the quick and easy solution to it. Server Error in ‘/CMApplicationCatalog’ Application This customer does quite a lot of customisation on their servers. Granting permissions, taking them away, redirecting folders from here to there. They for example redirect the system temp to C:\temp and take away all the permissions the user ‘Local Service’ has to that temp directory. As soon as I added ‘Local Service’ again with full permissions, all was fine and the ConfigMgr Application Catalog started up again. – David

Second year as MVP for Enterprise Client Management

Today I got the probably most important email in October 2014. On the day that Microsoft announced Windows 10, Microsoft re-awarded me for the second time with a Microsoft Most Valuable Professional Award for Enterprise Client Management. This expertise includes Microsoft System Center Configuration Manager (ConfigMgr / SCCM) and Intune / MDM. I am very thankful for this award and couldn’t have achieved all this without my always understanding wife Sandra. Becoming an MVP means working late, travelling to events (most of them on the weekends) and mainly doing stuff non-IT people consider ‘work’ and as such think is a waste of time I’m looking forward to another very exciting … Continue reading

Speaker at TechEd Australia

I am quite excited to be chosen as a Speaker at the new TechEd format in Australia. The format will be quite different to what it used to be. Instead of four days on the Gold Coast it will now be split into two 2-day events in Sydney and Melbourne. I will have the pleasure to speak at both locations. Datacenter transformation My two sessions will be – who would’ve guessed- around automation. My two sessions will be: Be in total control with Desired State Configuration (Sydney, October 27-28 2014) Bye-bye Orchestrator, there’s a new kid in town (Melbourne, October 7-82014) The exact times of the two sessions are not … Continue reading

ConfigMgr uber-Hydration Kit v0.9 with Powershell DSC

Are you a ConfigMgr (or SCCM) administrator? Are you sometimes (or often, like me) in a position where you need to rebuild your ConfigMgr 2012 lab environment? I, again, was in that situation and just came out of a very interesting discussion with a co-worker and thought to myself, why not use Desired State Configuration to do all that? I am calling it uber-Hydration Kit, but to be fair, it’s not 100% automated yet. There are still a couple of things that need to be done manually. I will explain later on, that is why it is still at version 0.9. Enter: Powershell Desired State Configuration I have already used … Continue reading

Add or remove features in MDT WinPE

Not going too deep here, just something I found the other day. In your MDT 2013 Deploymentshare, if you go to the share’s properties, you will find the WinPE Tab and the WinPE’s features: In here you can add components to your boot images. These components are either in C:\Program Files\Microsoft Deployment Toolkit\Templates\Distribution\Tools (like DaRT: http://www.deploymentresearch.com/Research/tabid/62/EntryId/131/Adding-DaRT-8-1-from-MDOP-2013-R2-to-ConfigMgr-2012-R2.aspx ) or in your ADK install directory here: C:\Program Files (x86)\Windows Kits\8.1\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs If you take a look at the latter, you might see that there are components in there that don’t show up in that list in your MDT Deploymentshare, for example WinPE-FMAPI.cab (File Management API). Why is that? … Continue reading

Cloud OS MVP Roadshow 2014 – Sydney

[Update] New date! There has been a new date for the Cloud OS MVP Roadshow announced. The event will now be on 18/09/2014 in Sydney. Register FOR FREE on SYDNEY Event Details & Registration: http://bit.ly/1odJ2GX   [/UPDATE] If you haven’t heard about it already, the Cloud OS MVP Roadshow, a worldwide event hosted by Microsoft, will come to Sydney in August 2014. I will be speaking there alongside other MVPs about how to get you away from that old, stinking, legacy Windows Server 2003, to the new, shiny, with a smell of roses Windows Server 2012 R2. If you are from the Sydney, Australia area and want to join for … Continue reading

What if Windows 8.1 had intelligence and no-one cared?

I am currently working on a Windows 8.1 deployment that will end up on quite a few tablets used in retail stores. Interesting project from a requirements perspective, because usually I never had to worry about machines being stolen by customers that much New Feature in Windows 8.1 Update Of course, I am deploying Windows 8.1 Update (latest and greatest!) to these tablets which is easy. Create a Build & Capture Task Sequence in MDT and afterwards deploy it with whatever you like. I have to stick to MDT as a deployment tool for the time being, as the customer has not yet upgraded their ConfigMgr environment to 2012 R2. … Continue reading

How to deploy a SMA worker via Powershell DSC

[UPDATED 21/07/2014 and 18/08/2014] See below In my previous article around Powershell DSC I demonstrated some very basic example of what DSC can do. This article will go a bit deeper and show you a complete solution where Desired State Configuration can come in very handy. I recently needed to deploy a couple of SMA (Service Management Automation) Runbook Worker machines. In this case I did not want to install them all manually, as I tend to forget some of the software requirements and I also don’t want to install too many unneeded server roles and features. I couldn’t find anything on the internet, so I thought I’d create a … Continue reading