Page 1 of 1 1
Topic Options
#214283 - 2024-09-04 06:35 PM User to SID lookup
HarrowCactus Offline
Fresh Scripter

Registered: 2006-04-12
Posts: 10
Loc: United Kingdom
Hi

Is there a way of getting the SID of a user in AD using Kix

I have tried using Powershell to write the information to a text file and read it back into Kix but for some reason it reads each char as a separate line.

I need the SID to be stored as a variable for later use in the script.

Top
#214284 - 2024-09-04 08:06 PM Re: User to SID lookup [Re: HarrowCactus]
Allen Administrator Offline
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4548
Loc: USA
At least two Name2Sid functions are available... same result, but obtained differentily

Name2Sid() - http://www.kixtart.org/forums/ubbthreads...true#Post204574
Name2Sid() - http://www.kixtart.org/forums/ubbthreads...true#Post175771

How to use UDFs -
http://www.kixtart.org/forums/ubbthreads.php?ubb=showflat&Number=81943#Post81943

The rest of the UDFs are here -
http://www.kixtart.org/forums/ubbthreads.php?ubb=postlist&Board=7&page=1

Top
#214285 - 2024-09-12 10:44 AM Re: User to SID lookup [Re: Allen]
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4673
Loc: The Netherlands
If it is for the user in the current sessions you could use the @SID macro.

 Code:
?"Current user has SID: " + @SID
sleep 10
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#214286 - 2024-09-17 05:36 PM Re: User to SID lookup [Re: Mart]
HarrowCactus Offline
Fresh Scripter

Registered: 2006-04-12
Posts: 10
Loc: United Kingdom
Thank you Name2Sid worked Perfectly
Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 443 anonymous users online.
Newest Members
Jojo67, MaikSimon, kvn317, kixtarts2025, SERoyalty
17873 Registered Users

Generated in 0.061 seconds in which 0.045 seconds were spent on a total of 14 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org