Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Add Item for Inventory

Add Item for Inventory

Add Item for Inventory

Just got Inventory services running (ZFD4.01) and it's very nice, but I'd like to know what user profiles are on which machine.

In other words, I'd like a list of every user account on a given PC. Anybody know how I can do this?

RE: Add Item for Inventory

I don't know of anything is ZENworks that can do this.  You do have a few options you can try to gather this info.

You could try creating a custom inventory scan to gather and list the directories found under the "Documents and Settings" directories.  Not sure how to set this one up my self off hand, would need to fiddle with inventory settings to figure it out (not exectly somthing many people are looking to do).

You could also try just a simple DIR of the directory with the out put directed to a file.  This will tell you all the user profiles, but it won't do user accounts.

You can use the NET USERS command to list all of the user accounts in the local SAM database.  Direct the output to a file.  This will not tell you about profiles however.

Now you can run both to get both the user accounts and the user profiles.  With the data being written to a text file, you then have somthing to look at to find the info you want.

These are windows internal commands, so they would only need a simple NAL object to run them, and can be done in a couple of ways.  You can make two app objects that run the executable (not sure the text file redirect will work though), but it's two objects to take care of, not the way I would do it my self.  Use the Distribution script function to run the commands after distribution.

Now the more difficult part, how do you get the data?

Well, I would script it my self.  Write a script file that can parse through the two data files that get created, extract the desired data, then send the info to a syslog server.

Or you can search for a 3rd part tool.  Look my self in answering this, and didn't find anything that didn't require  Active Directory to be running.

Brent Schmidt        Certified nut case   
Senior Network Engineer
Keep IT Simple http://www.kiscc.com

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close