WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

wNT
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Get SID from Username


Question:

I am new to WinBatch so bear with me a bit. I have a script to that lists the usernames on the local machine for the operator to select from. What I need to have happen is for that username to then map back to an SID so I can work with it further. I was trying to get wntUserGetDat to send me the data, but so far no luck.

Answer:

To capture clients SID :
currentSID = wntAcctInfo( wntUserInfo(3), wntGetUser(""), 1)

Article ID:   W16517
File Created: 2005:02:18:12:21:14
Last Updated: 2005:02:18:12:21:14