This script generates Last Logged-On User / DefaultUserName information from an input file (input.csv) which contains computer names.
Input file (input.csv) contains all computer names. “ComputerName” header is a requirement.
UserInfo.csv – contains computer names and corresponding SamAccountNames
FailedCompuers.csv – Script verifies admin$ access. If the access fails, it will be added to the FailedComptuers.csv file.
This script also displays the output on the screen.
You can download the script from the following location: