This script can be used to generate user profile and Operating System (OS) information from an input file (input.csv) which contains computer names. This script generates 2 output files. UserInfo.csv – which contains Computer Name, Profile Name, Last Access Time, OS version and Service Pack information.
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.
Output File – UserInfo.CSV
Sample Input.CSV file
You can download the script from the following location: