Report – Last Logon User from Active Directory

Hello Guys, The objective of keeping the base clean Active Directory, follow the script to generate a report of the last logon of users from Active Directory, so it is possible to identify and delete the user who log on the network to more than 1 year. Save the following script as *. VBS and use the complete script execution will generate a *. csv file. ___________________________   Option Explicit Dim strDomain, strOU strDomain = “Contoso.corp” strOU = “DC=contoso,DC=corp” strDomain = InputBox(“Enter the FQDN of the domain to be searched.” & chr(13)& chr(13) & “Exemplo: ” & chr(13) & “contoso.corp”, … Continue reading Report – Last Logon User from Active Directory