Simple Guide Manage ADDS using Windows Powershell 3.0 in Windows Server 2012 R2

Hi all,

For this post I going to show you all how to manage your Active Directory Domain Services (ADDS) using Windows PowerShell 3.0 in Windows Server 2012 R2 in simple way.. Thousands of things you can do in PowerShell, but today lets play around with few command that might useful for you in the future....


For this demo, I use my New Domain Server which is ComSys.local...


Lets get started...


For my 1st demo, I would like view Domain user and creating some report...


1 - On the domain Server, open Windows PowerShell..

2 - On the Windows PowerShell type Import-Module ActiveDirectory to enable PowerShell AD Module...

3 - Next, type Get-Command –Module ActiveDirectory to see what are the ADDS PowerShell command you can use..

4 - Lets try view some AD user information... type Get-ADUser -Filter * | Format-List

5 - you can also filter AD user by given name and surname., type Get-ADUser –Filter * | Format-List -Property GivenName, Surname

6 - if you wanted to get more information about user attributes, type Get-ADUser –Filter * -Properties * | Format-List *

I list down here few ADDS Powershell command you can try yourself :


Get-ADUser -Filter * | Format-Table


Get-ADUser –Filter * | Format-Table -Property GivenName, Surname


Get-ADUser –Filter * -Properties * | Format-Table


Get-ADOrganizationalUnit -Filter * | Format-Wide


Get- ADOrganizationalUnit –Filter * | Format-Wide –column 3


Get-ADUser -Filter * | Sort-Object| Format-Wide


Get-ADUser -Filter * | Sort-Object -Property ObjectGUID | Format-Wide -Property ObjectGUID


Get-ADUser -Filter * | Measure-Object


Contact Us

Our Office :

OSI TECHNOLOGY SDN BHD

16-1 Jalan Opera D U2/D,

Taman TTDI Jaya,

40150 Shah Alam,

Selangor Darul Ehsan

Tel : 603 7846 3080

Fax : 603 7848 3180

Email : info_osi@osi.com.my

Training Centre & Exam Centre : 

OSI TECHNOLOGY SDN BHD

20-1 Jalan Opera G U2/G,

Taman TTDI Jaya,

40150 Shah Alam,

Selangor Darul Ehsan