Active Directory

In this post I will show you how to query active directory security group members and export them to CSV(or excel) using PowerShell While there are variety of ways available to export group membership to excel/CSV, the easiest method I found is using the combination of cmdlets in ActiveDirectory module & Export-CSV cmdlets. It helps […]

{ 0 comments }

In this article, I will show you how to create multiple test user accounts in active directory using PowerShell. While playing with some stuff in my lab setup today, I got a requirement to have 100 test user accounts. I am not concerned much about the display name or any other properties of these test […]

{ 0 comments }

In past I talked about same topic in DCLocator(Part-I) & DCLocator(Part-II) posts. That time I came to that conclusion based on what I read in some blogs and my own experimeniting.  The posts are not having any pictures or anything that can make my readers understand this concept clearly. It is completely a text rambling […]

{ 0 comments }

In this post, I will show you how to use Powershell for enabling or disabling OU protection in Active Directory. In my last post, we have seen how to query Organization Units in Active Directory that has protection enabled. Now we will see how to enable or disable this protection option using PowerShell. As I […]

{ 1 comment }

In this post, I will show you how to find list of Organization Units(OUs) in Active Directory that has protection enabled on them using Powershell We know that, Active Directory now has built-in protection for Organization Units to prevent accidental deletions. This helps in unnecessary loss of data and saves the time that one need […]

{ 0 comments }

While working on some PS stuff today related to active directory, I came across a need to verify if the given OU(Organization Unit) exists or not. Basically, I am taking OU as input to one of my scripts and would like to validate if that OU exists before doing any processing.  After a little bit […]

{ 1 comment }

In one of my previous articles I showed you how to install and configure active directory in Windows Server 2012. In this post, I will talk about step-by-step removal of active directory from a domain controller in Windows  Server 2012. Like the change in installation procedure of active directory, demotion/removal also will not depend on […]

{ 3 comments }

The “Active Directory Administrative Center” is much sophisticated tool in Windows Server 2012 to manage Active Directory. I liked its ability to easily to restore user/computer or any other Active Directory object easily without much complexity. To recover a deleted object from active directory, follow the procedure. You should have Recycle bin enabled and working […]

{ 0 comments }

Recycle Bin option was introduced with Windows Server 2008 for easy recovery of deleted objects. It is a optional feature and one can enable if they need it. In windows 2008 we need to do it via Powershell commands but in Windows Server 2012, there is GUI option available. Procedure to enable recycle bin in […]

{ 1 comment }

Step by step guide for installing Active Directory on Windows Server 2012 Installing Active Directory Domain Services(AD DS) on Windows Server 2012 is different from it’s predecessor operating systems. Till Windows 2008, we used the most famous dcpromo to install Domain Controller and demote them. Things have changed from Windows Server 2012, and you will […]

{ 2 comments }