Wednesday, April 15, 2015

Active Directory PowerShell

Great question: Can I Create Active Directory Users Based On Excel Input

https://gallery.technet.microsoft.com/scriptcenter/PowerShell-Create-Active-7e6a3978

Great question:  How do I find all the attributes of my users in the Active Directory

First start by starting the Active Directory Module for Windows PowerShell

SNAGHTMLabcee102

Get-ADUser -filter *
image 

Problem is however if you get all the users using -filter * you are missing some attributes. So using a wildcard for the properties will return all.

image 
Using OGV (Out-Gridview) you get a quick view report





Get-ADUser -filter * -properties * | ogv




image



NOTE: You can use the same format above for ad users, ad groups or ad computers

Get-ADComputerUser -filter * -properties * | ogv

Get-ADGroup -filter * -properties * | ogv

Get-ADUser -filter * -properties * | ogv




SNAGHTMLabdebe56



Hope that Helps, Happy PowerShelling