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
Comentários