Saber data de l’últim login de cada usuari a Active Directory
$Path = "C:\LastLogon.csv" Get-ADUser -Filter {enabled -eq $true} -Properties LastLogonTimeStamp | Select-Object Name,@{Name=”Stamp”; [...]
$Path = "C:\LastLogon.csv" Get-ADUser -Filter {enabled -eq $true} -Properties LastLogonTimeStamp | Select-Object Name,@{Name=”Stamp”; [...]