Subscribe to Windows IT Pro
April 18, 2001 12:00 AM

Hidden Usercomment Field in the SAM Database

Windows IT Pro
InstantDoc ID #20323
Rating: (0)

A User Manager field exists that is inaccessible from the User Manager GUI—Usercomment. Similar to the GUI-accessible Description and Comment fields, Usercomment is 48 characters long, and you can use a net user /usercomment: command to populate it.

In our environment, we needed a place to put employee ID numbers, but because of their sensitive nature, we didn't want these ID numbers to be visible. We use the following simple batch file to populate this field and ensure that each user has an associated employee ID number:

net user %1 /usercomment:"%2"

I haven't found a third-party utility to parse this field, so I use the built-in Net User command.

Related Content:

ARTICLE TOOLS

Comments
  • Fikre
    11 years ago
    May 07, 2001

    I saw your posting in Win2000 Mag, titled "Hidden Usercomment Field in the SAM Database".



    If the field is invisible from the GUI, why would you want to populate it unless you were going to use it?

You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

advertisement

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.