Rem: Using WMI to Translate SIDs


Can I use Windows Management Instrumentation (WMI) to translate a SID to a username?

Yes you can, by using the WMI Win32_SID class, as the script in Listing 1, page 9, shows. To use this script, simply change the value assigned to the strSID variable to the SID you want to translate.

Hide comments


  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.