Posts Tagged ‘Powershell

I wanted to write a powershell script to retrieve the last logon property of an Active Directory User. Here is  how I came to the final script.
First of all: to get the domain users, use the command:

Get-QADUser

This will return a list of all the domain users. As it will not return the property LastLogon, [...]