Tag Archives: AD

Powershell to email Windows users when their AD password is soon to expire

As with most companys, the most frequent support questions are to do with users passwords. We have a lot of remote users that don’t actually login to the system and as passwords are set to expire quite often so they quite frequently find that their password …

Read more »

Windows Powershell Script to disable inactive AD user accounts

As part of my compliant I need to keep tabs on inactive user account. The comapny is only small right now and so easy to monitor, but as I like automating things, this fantastic script from vNucleus provides an excellent solution. I’ve …

Read more »

Inserting User Photos into AD and User Tiles with Powershell

I while back I wrote about importing images into AD with vbscript. I’ve recently been looking into doing a similar thing but found its now possible with powershell. On server 2008 its pretty simple, I created a user photo directory and placed …

Read more »

Forcing Active Directory Photos with Lync 2010

With Lync 2010 setup (all be it very basic right now) it was time to take control. I started exploring what was possible via various policys for the clients. One of the features allows users to choose their own profile …

Read more »

Script to import user photos into Active Directory

After recently installing Lync 2010, I soon realised that I should probably have already imported user photos into Active Directory, seeing as Outlook 2010 also supports user thumbnails and it would be a nice little feature to add in. I …

Read more »

Forcing the removal of active directory from a domain controller

You can force the removal of AD from a machine by running: dcpromo /forceremoval It’s not the best way to do it of course, but if all else fails you can run this.

Missing and Inaccurate DomainDnsZones and ForestDnsZones in AD

I was doing a bit of an AD spring clean today and came across a few errors which had me stumped for a little while. The short of the story is, when running DCDIAG, I was getting a couple of …

Read more »

You do not have sufficient privileges to delete ‘OU’, or this object is protected from accidental deletion

I got this error when trying to delete a ‘test’ OU called ‘x’ from AD the other day: “You do not have sufficient privileges to delete ‘OU’, or this object is protected from accidental deletion” The fix is quite simple, …

Read more »