Using PowerShell - Get all AD users list with created date, last changed and last login date

preview_player
Показать описание

Using PowerShell - Get all AD users list with created date, last changed and last login date

1. Prepare

2. Step by step : Get all AD users list with created date, last changed and last login date

- DC1 : Get all AD users list with created date, last changed and last login date

+ Using interface, check HiepIT account :

+ Server Manager - Tools - Actice Directory Users and Computers - View tab : Choose 'Advance Features'

- IT OU - Right-Click HiepIT - Properties - Attribute Editor tab, check attribites :

+ whenCreated, whenChanged, lastlogonTimestamp

+ Using Windows PowerShell, Get all AD users :

+ Start - Windows PowerShell, type :

+ Get-ADUser -Filter * -Properties * | select Name,whenCreated,whenChanged,LastlogonDate

Рекомендации по теме
Комментарии
Автор

Damn, really helpful mate! you helped out a fellow IT guy

Atika
Автор

It worked for me. Thanks! To save the results to a file I added the export-csv command after a second pipe:
Get-ADUser -Filter * -Properties * | select Name, whenCreated, whenChanged, LastlogonDate | export-csv adusers.csv

WeekendMuse
Автор

your channel is life changer! :) LOVE your channel....

vdfkhkk
Автор

I wonder if there is any way to force the user to update their data, such as email and phone in AD, when they log in to Windows

MarcosViniciusGomes
Автор

I did the same but it is not showing the information about all users. The user is listed but its information is blank.

muhammadhassansiddiqui
Автор

Is it possible to “insert “ a login on a different day and time into a website.

Karamelaki
Автор

How do I find a powershell command to check when user mailbox was converted in powershell??

_zubairkazi
Автор

how can i get all logon events for specific user on a different day

frankstarson
Автор

is there a way to Search-ADAccount -lockedout | Enabled users only?

Spirittism
Автор

Man if you don't speak on the video at least put that good ol notepad tutorial trance song on. Lmao

nklein
Автор

Can I get script for lastpassowrdrest, display name, account Status

ayyubkhan
Автор

If you don’t want to speak no matter s but then at least make video with good quality. Only the commands written in notepad were visible. Nothing there after was visible.

dilipbhagat