Place the following into a batch file and execute it -

for /f "tokens=2" %%s in ('whoami /user /sid /noverbose') do set SID=%%s 

... it depends upon the WHOAMI.EXE binary found within the Support Tools I
believe.

--
Dean Wells
MSEtechnology
* Email: [EMAIL PROTECTED]
http://msetechnology.com


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ernesto Nieto
Sent: Monday, August 15, 2005 1:38 PM
To: [email protected]
Subject: [ActiveDir] SIDs variable for batch file?

I need to create a batch file that calls upon the SID of the current user.
Is there a variable that will give me the info if called upon?
Thanks



List info   : http://www.activedir.org/List.aspx
List FAQ    : http://www.activedir.org/ListFAQ.aspx
List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/



List info   : http://www.activedir.org/List.aspx
List FAQ    : http://www.activedir.org/ListFAQ.aspx
List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/

Reply via email to