Active Directory · PowerShell

Powershell and Active Directory: Find all organizational unit containers [OU] in Active Directory using Powershell.

  Hi, These days i think i am only and only working with Active Directory.  My Manager give me the task to show him the all Organizational Unit Container , so that we can re-arrange them and remove the OU those are not required any longer. Seriously i don’t know any way to do this.… Continue reading Powershell and Active Directory: Find all organizational unit containers [OU] in Active Directory using Powershell.

Active Directory · PowerShell

Powershell and Active Directory: Powershell Script to create multiple groups in Active Directory and add predefined users in to it.

  HI, Sometime a need arrives when you need to create a few Active Directory groups and add the same members to all the groups. Today i need to create 20 Group and need to add same users to all the groups. To create 20 Group manually and then add users to it one by… Continue reading Powershell and Active Directory: Powershell Script to create multiple groups in Active Directory and add predefined users in to it.

Active Directory · PowerShell

Powershell and Active Directory: Find inactive Computer Accounts in Active Directory using Powershell.

  HI, As you know my IT manager always keep me busy. These days we are cleaning our Active Directory. My Today’s “Target of the Day” is to find all in-active computer accounts. first i start thinking how to do it ? to use some filter in “Active Directory Computer and users” or i need… Continue reading Powershell and Active Directory: Find inactive Computer Accounts in Active Directory using Powershell.

Active Directory · PowerShell

Powershell and Active Directory: Add domain users to a group using powershell.

  Hi, Yesterday i shows you how to create a user group in “Active Directory”. Now lets today add members to that user group using powershell. Lets Start.  Make sure you have “RSAT“ installed on you laptop. Now Import the Active Directory module. Import-Module ActiveDirectory   .. ok, Module is imported,, we are going to use Add-ADGroupMember cmdlet.… Continue reading Powershell and Active Directory: Add domain users to a group using powershell.

Active Directory · PowerShell

Powershell and Active Directory: Create a new group in Active Directory using Powershell.

  Hi, Yesterday one of my users asked me to create a few user group for him. Normally to create a new group i open “DSA.MSC” or “Active Directory users and computers” and create a desired group. This time i thought i would create a new group using PowerShell. To create a new group in… Continue reading Powershell and Active Directory: Create a new group in Active Directory using Powershell.

Active Directory · PowerShell

Remove Computer Account from All Domain controllers using PowerShell

  Hi, If you are using Active Directory environment in you infrastructure then you does the one thing for sure , remove / add computers to the domain. Some times when you format user computer and add it again to the Domain it gives an error that “Computer Already exists in the domain”. Or you… Continue reading Remove Computer Account from All Domain controllers using PowerShell