Saturday, July 17, 2010

User Profile and Operating System (OS) Info – PowerShell Script

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.

image

Console Output

image

Output File – UserInfo.CSV

image

You can download the script from the following location:

UserProfile_OS_Info.PS1

1 comments:

HI,

How do i get the full computer names to create the input file?

Any script for that?

Cosy

Post a Comment

Popular Posts

Sociable

Share

Twitter Delicious Facebook Digg Stumbleupon Favorites More