bra o powershell e digite:
%windir%\system32\WindowsPowerShell\v1.0\powershell.exe -noexit -command import-module ActiveDirectory
Get-ADUser LOGIN_A_CONSULTAR -properties * | select name, LastLogonDate, PasswordExpired, PasswordLastSet
Anotações técnicas
bra o powershell e digite:
%windir%\system32\WindowsPowerShell\v1.0\powershell.exe -noexit -command import-module ActiveDirectory
Get-ADUser LOGIN_A_CONSULTAR -properties * | select name, LastLogonDate, PasswordExpired, PasswordLastSet