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 … Continue reading Deleting AD Users with PowerShell – Why is a user not a leaf object?

Free Microsoft Tech Showcase Events

Microsoft has teamed up with some of its Microsoft Learning Partners to provide free first-look clinics covering Windows 8, Windows Server 2012, Visual Studio 2012, SQL Server 2012, Exchange 2013, SharePoint 2013, and Lync 2013. These events are happening all around the world, so you should hopefully find one near to you. I found out about these from a Microsoft UK blog that said they were being run “across the UK” – looking at the currently published list of events, “across the UK” is defined as London and Wokingham, so your mileage may vary. Still, it’s worth a journey because event offers … Continue reading Free Microsoft Tech Showcase Events