Hidden Usercomment Field in the SAM Database

Find out about a hard-to-find field in the SAM database.

Readers

April 17, 2001

1 Min Read
ITPro Today logo in a gray background | ITPro Today

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.

—Michael Hammond
[email protected]

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like