I’m traversing our Active Directory and hauling out info about each user. One piece of information I’d like is the SID, but it is stored as a byte array and I need to convert it to a string to make use of it. I found a piece of code written in C# that somebody was kind enough to post on http://www.codetools.com that has this functionality. I’m bright enough to copy the code from the web page, but am not so bright as to know what to do with it from there. Could somebody walk me through accessing a C# function in a VB.Net project, please?
Alternatively, if there’s a VB.Net solution out there for converting a byte array to a string, I’d love to use it!