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: [Update] 22/11/2014 Fixed links I have fixed the link for the all-in-one download. I haven’t updated the zip file itself, but I will do that soon.
I was tasked to write a bunch of PowerShell scripts to deploy a new Active Directory Domain Services (ADDS) Server onto Azure. The end goal would be to have some kind of synchronisation running between the off-premises and the on-premises environment, the off-prem basically being the Test/Dev environment for that customer. Over the last couple of days I wrote down some notes on about what I did and what curiosities I found. If you haven’t yet started using the Azure PowerShell SDK, go check out http://azure.microsoft.com/en-us/documentation/articles/install-configure-powershell/ . This will help you get started. PowerShell SDK for Azure as with everything you are trying to automate, it helps a lot to have a […]
After getting rid of my Surface earlier this year there’s another big change for me, I’m saying good-bye to the Enterprise Client Management Group and with immediate effect am now a “System Center Cloud and Datacenter Management” (SCCDM) MVP. My MVP Profile has already been updated accordingly. Cloud and Datacenter Management MVP This has already been on my mind for some time. I’m still going to do and blog about ConfigMgr, but my focus will clearly stay on Cloud and Datacenter AUTOMATION, because that is what I do, in my free time, when speaking at events and of course at work. Even more exciting times ahead! -David
2015 brought its first big change for me, I’ve sold my Surface Pro 3 and bought a – wait for it – MacBook Air. Why did I sell the Surface Pro 3? Well, I was very, very excited when I got the Surface. I had the first Surface Pro, my wife had the first Surface RT and we were both pretty unimpressed with Microsoft’s first Surface. My wife still occasionally uses the Surface RT for some stuff, but I sold mine with great financial loss. Then, when Microsoft released the Surface Pro 3 I wanted to have it right away (the i5, 128GB version). Even with a 10% off voucher […]
I was setting up my new lab environment at home and ran into a VERY weird issue, that caused me a bit of a headache. Thanks to Social Media and a very helpful colleague I now found the solution, and because I wasn’t able to find any other article, here it is. Create a Plan in Windows Azure Pack If you ever wanted to create a Plan in your Windows Azure Pack (WAP) environment to give your tenants / users some IaaS / DBaaS functionality, then you might have run into this issue as well, or not. This whole issue just came to be because I got a bit ahead […]
2014 felt a bit like that. So much happened the last 12 months it’s hard not to forget something. had a session at User Group in Zurich / Switzerland quit my job at sepago, after 5 great years moved to Australia!!! I frigging moved to Australia!!! met a lot of great people here. had a session at TechEd Australia in Melbourne had a session at TechEd Australia in Sydney Went to my first MVP Summit (Redmond / Washington / USA) ever had 5 (or was it 6?) sessions at MMS Minnesota sharing the stage with great guys like Jeff Wouters, Trevor Sullivan and Greg Ramsey had 2 […]
Rebuilding my home lab with PowerShell I am currently rebuilding my home lab (again! This time properly, I promise.) and my goal is to use as much PowerShell as possible. I am building everything on a Dell XPS 15 laptop with a 1TB Samsung SSD and 16GB RAM. Enough for a mid-size mobile lab. The host runs Windows Server 2012 R2, what else? On top of that I have also installed the Windows Management Framework 5 November Preview in order to use all the latest and greatest features of PowerShell, for example Desired State Configuration in its latest version. Of course, I have also downloaded the DSC Resource Kit in […]
Mass import of users into a cloud directory with PowerShell By now you should already know that PowerShell should be the default tool for every IT Pro nowadays. Every new product and every new release of an existing product out of Microsoft is shipped with a PowerShell module, that’s a clear sign. It’s not only Microsoft, VMware, Citrix, Amazon, all big vendors make their products and services manageable via PowerShell. So get used to it This article will show you an end-to-end example of a PowerShell script that does a mass import of users into a Microsoft Azure Active Directory or Office 365 directory via PowerShell. Azure Active Directory won’t […]
How to update a cluster with a cluster-ignorant tool I’ve recently been tasked to create a process to patch SQL Always On Availability Groups (I guess calling it a cluster is not really accurate?!) with just the tools I had available, no new implementation of stuff. This meant to do a proper patching cycle (Operating System AND SQL) with graceful failovers of SQL roles from one node to the other, no data loss. So, quick inventory; what did I have? ConfigMgr 2012 R2 PowerShell Phew, PowerShell, you can do a lot with PowerShell. ConfigMgr, mhhh, ConfigMgr can do Software Updates and execute stuff on machines when it is told to […]
You know of the recycle bin in Active Directory, right? I guess this feature has probably saved a bunch of people already big time. Anyways, even the cloud can’t save you from stupidity, failures or “Are you sure? Of course I’m sure!” situations when, for whatever reason, user accounts get deleted when they should not have been deleted. This scenario will specifically show how you can recover deleted user accounts both from Office 365 and also from Azure Active Directory. Azure Active Directory You can’t view deleted users in your Azure Portal (unless you can show me where!), too bad. Gone is gone. PowerShell to the rescue. Connect your PowerShell […]
You’ve been to Infrastructure Saturday in Brisbane / Queensland / Australia? (www.infrastructuresaturday.com) Awesome, hope you enjoyed it. You haven’t been? Try next time, until then, you can go and grab all the scripts I used during both my sessions here to test in your own environment. Azure Active Directory Identity Management Rich Identity Management session with James Bannan on Azure Active Directory: The web site I used to build the dummy user data is http://www.generatedata.com/ Service Management Automation and Powershell Service Management Automation Session: Scripts: Slides: Disclaimer! Please check all scripts before you execute them. Most only make sense in context but might demo some limited functionality.