Tag Archive: Active Direcotry

Sep 22 2015

Delete phantom records of an old domain controller from DNS

Sometimes after demoting a DC the NS records in DNS are kept! These records may cause issues if not deleted. Here’s a PowerShell three liner to remove the obsolete records from all zones, you need to change the server names according to your environment.  

  Cheers!

Permanent link to this article: http://almoselhy.azurewebsites.net/2015/09/delete-phantom-records-of-an-old-domain-controller-from-dns/

Dec 16 2011

Remove unused computer accounts from Active Directory using PowerShell

I can never call myself a PowerShell guru, but I am currently trying my best to “practice” more PowerShell since I know that it is the future of command line administration. So today, I was doing some regular maintenance to the active directory, just disabling the old computer accounts as a step into removing them …

Continue reading »

Permanent link to this article: http://almoselhy.azurewebsites.net/2011/12/remove-unused-computer-accounts-from-active-directory-using-powershell/