North East Bytes - a Microsoft technology usergroup in North East England.

Powered by Squarespace

Monday
Apr222013

2013 PowerShell Scripting Games

If you've read very much of my blog, you'll know that I'm a big fan of the annual Scripting Games, where challenges are set for beginners and advanced scripters, to be solved in PowerShell. The reason I like this event so much, apart from enjoying a challenge, is that it's an excellent way to learn, regardless of your level of proficiency.

The great thing about the Scripting Games is that you can have a go at solving each problem and then see an expert solution to compare your efforts with. Even if you're really competing at the advanced level, you're likely to learn something from that, and if you're just a beginner, then there's no better way to learn that to try to solve a problem and being shown by an expert the best way to do it.

The 2013 event kicks off today, and I strongly recommend you take part if you have the time. If you don't have time to do it right now, then there's nothing stopping you having a go after the competition has ended - just make sure that you give the challenges a try before you look at the expert solutions.

Thursday
Mar282013

More System Center 2012 SP1 on Microsoft Virtual Academy

Earlier this month, I pointed at a couple of courses on Microsoft Virtual Academy - which is a great free resource, if you haven't already found it. I've since found a post on the System Center blog pointing at a whole load more content that you might want to check out:

Configuring and deploying Microsoft's Private Cloud

http://www.microsoftvirtualacademy.com/training-courses/configuring-and-deploying-microsoft-s-private-cloud

Introduction to the Microsoft Private Cloud

http://www.microsoftvirtualacademy.com/training-courses/introduction-to-the-microsoft-private-cloud

Introduction to Hyper-V Jump Start (with System Center 2012 SP1)

http://www.microsoftvirtualacademy.com/training-courses/introduction-to-hyper-v-jump-start

Microsoft Virtualization for VMware Professionals Jump Start (with System Center 2012 SP1)

http://www.microsoftvirtualacademy.com/training-courses/microsoft-virtualization-for-vmware-professionals-jump-start

Microsoft Solution Accelerators for the Datacenter and Private Cloud

http://www.microsoftvirtualacademy.com/training-courses/microsoft-solution-accelerators-for-the-datacenter-and-private-cloud

Private Cloud: Computing and Infrastructure Management

http://www.microsoftvirtualacademy.com/training-courses/private-cloud-computing-and-infrastructure-management

Private Cloud: Service Delivery and Automation

http://www.microsoftvirtualacademy.com/training-courses/private-cloud-training-service-delivery-and-automation

Private Cloud: Application Services Management

http://www.microsoftvirtualacademy.com/training-courses/private-cloud-application-services-management

Private Cloud: Infrastructure Components

http://www.microsoftvirtualacademy.com/training-courses/private-cloud-infrastructure-components

System Center 2012 Licensing Overview

http://www.microsoftvirtualacademy.com/training-courses/system-center-2012-licensing-overview

System Center 2012 Service Pack 1 Updates

http://www.microsoftvirtualacademy.com/training-courses/system-center-2012-service-pack-1-updates

System Center 2012 SP1 Capabilities

http://www.microsoftvirtualacademy.com/training-courses/system-center-2012-sp1-capabilities

System Center 2012: Operations Manager

http://www.microsoftvirtualacademy.com/training-courses/system-center-2012-training-operations-manager

System Center 2012: Configuration Manager

http://www.microsoftvirtualacademy.com/training-courses/overview-and-infrastructure-changes-in-sccm-2012

System Center 2012: Data Protection Manager

http://www.microsoftvirtualacademy.com/training-courses/protecting-private-clouds-with-system-center-2012-dpm

System Center 2012: Orchestrator & Service Manager

http://www.microsoftvirtualacademy.com/training-courses/system-center-2012-orchestrator-service-manager

System Center 2012: Virtual Machine Manager (VMM)

http://www.microsoftvirtualacademy.com/training-courses/system-center-2012-virtual-machine-manager-vmm-

System Center Advisor

http://www.microsoftvirtualacademy.com/training-courses/system-center-advisor

What’s New in System Center 2012

http://www.microsoftvirtualacademy.com/training-courses/what-s-new-in-system-center-2012

That's a whole lot of learning, but that's going to be of limited use to you if you don't then go and kick the tires. To that end you might want to setup a test lab. You can download an evaluation of Windows Server 2012, either as an ISO if you want to pop it on a spare bit of kit, or a ready to use VHD file that you can attach to a VM, or boot from on your desktop. Then you can install an evaluation of System Center 2012 with SP1.

If you like, you can even setup an IaaS pop-up lab on Windows Azure and it doesn't have to cost you a penny:

Wednesday
Mar272013

Hogwarts School of Witchcraft and Wizardry

Last weekend, James and I set out on a mission to build a replica of Hogwarts. We knew it was going to be a big job, so we wasted no time, starting at 08:30, still in pyjamas.

Although we've watched the Harry Potter films a number of times, been to The Wizarding World of Harry Potter and to WB Studio Tour London, we can't actually remember exactly what Hogwarts looks like, so we started with a photo:

Then we decided which elements we wanted to have in our model:

Next step was to lay out our pieces roughly to see whether we had enough raw material to do what we'd planned. Lesley had been collecting cardboard boxes and tubes for a few weeks and it turned out that we had almost exactly the right amount, although we were required to devour a Flake Easter Egg early in order to use its box - sometimes you have to suffer for your art (at least I think that's how it went down - it may be that we were just desperate for a bit of chocolate one evening - you know how it is!).

Having decided that we had plenty boxes, we added more detail...

Once we'd got the boxes and tubes in place, we made some paper cones to top the turrets, added some height to our large Bisto turret, some card prisms to the top of our Bran Flakes towers...

...and a facade on the grrreat big building at the back...

Then it was time to paint.

We had to go out and buy paint, which meant we had to disrupt our flow to get washed and dressed first, then headed to B&Q where they have Dulux testers on a 3 for £1 deal. They didn't have exactly the shades for brick and slate that we were after, so we picked up 6 pots and mixed them together to give a nice red brick and slate roof.

We made sure that we also got plenty paint on socks...

...and hands... 

Then we took our newly painted building bits...

...and re-assembled them into Hogwarts...

This model is only designed to be viewed from the front, so we didn't bother to paint the back. You might notice the large turret (beside the Flake Easter Egg) having a bit of a bashed roof. That was something to do with a water pistol launching off the windowsill right on to the point of that cone. No idea how it happened, but I'm pretty certain it defied the laws of physics.

The next step was to draw on some detail. Some windows, detailing in the brickwork, and some numbers, because why not?? Then we taped the bits together into two easily transportable halves.

The whole point of this was to enter an Easter Egg competition at James' nursery school, so we needed to add our Harry Potter egg (created by Lesley), wearing a black wizard's cloak and riding a broom stick (paintbrush)...

In the end, James didn't win the competition (we probably gave him just a little bit too much help), but we certainly had a lot of fun building Hogwarts! :-)

p.s. If you like this, you might also want to have a look at Alice Finch builds massive LEGO Hogwarts from 400,000 bricks - very cool.

Friday
Mar222013

Deleting AD Users with PowerShell - Why is a user not a leaf object?

I've been re-writing some automated processes around user account lifecycle recently, making use of the Active Directory PowerShell module on Windows Server 2012. Most recently this involved removing a large number of expired user accounts. On the first attempt of trying to remove the user objects I was receiving this error for a number of them, seemingly at random:

Remove-ADObject : The directory service can perform the requested operation only on a leaf object

So why would a user object in AD not be a leaf object? It turns out that when a user connects a device to Exchange with EAS, there's an AD object created for that device inside the user object and that is what is stopping the user being a leaf object.

You might search for this and find advice on using Remove-ActiveSyncDevice before you remove the user. The trouble with that is that if you've got multiple versions of Exchange running in your org, then you might find that you can't remove the ActiveSyncDevice for all your users with the same method.

It doesn't matter anyway because the point is that the user isn't a leaf; it's a container that now has child objects, so what do you need to do to delete a container? Simply do a recursive remove. In the case of what I've been doing, this does the job:

$30daysago = (get-date).AddDays(-30)
Get-ADUser -filter {accountexpirationdate -lt $30daysago} | Remove-ADObject -Recursive

Thursday
Mar142013

R.I.P. Google Reader

 
When I'm at my desk, if I don't have the Google Reader site open all day, I'll at least check it 2 or 3 times. When I wake up in the morning, I'll check my GR feeds via a 3rd party app on my phone. In the evening, I'll sometimes keep track of new news via another 3rd party app on my tablet. In other words, I use Google Reader all the freaking time.
 
Today, my stats in Google Reader tell me this:
 
Now Google has announced that they're going to shut down Reader on 1st July 2013. Personally I think they tried to bury the lead by putting the closure of Reader as the 5th item in a list of 8, and by posting it just after the election of a new Pope.
 
I had a conversation earlier today about the value of Reader to Google, and there was a suggestion that seeing people's reading habits holding value when you mine the data (as Google does across all its properties). My stance on that is that they've probably got the demographic data pretty well locked down for the sort of people who use Reader - it's a minority anyway and likely fairly easy to pigeon-hole - so returns on that are probably diminishing. Regardless of that, it's a bad idea for them to annoy that demographic, which will contain a lot of early adopters and influencers in the tech industry.
 
Personally, I'm boycotting Chrome right now (although that probably won't last), and I was considering making a purchase of a new Android device, which I'm now going to give some more thinking time. Neither of those things will probably bother Google, but it's making me feel a bit better today because I'm pissed off.
 
I'm sure that by the 1st July there will be a viable alternative. None of the other options today have the ecosystem that Reader has. I expect that there may even be something better - it's been a while since Google have actively developed Reader and there are some areas where it's holding back the clients from developing new, innovative features. I'm not even sure that the transition will be that painful, it's just annoying that something that's so widely used and appreciated is going away while other, less used Google products are continuing on.
 
I am going to stop short of blaming the new Pope for this, but I think that Hitler sums up the situation quite well in this instance: