pastebin - collaborative debugging tool
nrubsig.kpaste.net RSS


get machine SID via powershell
Posted by Anonymous on Mon 11th Nov 2024 09:25
raw | new post
modification of post by Anonymous (view diff)

  1. # get machine SID via powershell
  2. # (Cygwin version: bash -c "mkgroup -l | sed -n 's/[^:]*:\(S-[-0-9]*\)-513:.*$/\1/p'")
  3. #
  4. (new-object System.Security.Principal.NTAccount("DERFWNB8353$")).Translate( [System.Security.Principal.SecurityIdentifier] ).toString()

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with {%HIGHLIGHT}




All content is user-submitted.
The administrators of this site (kpaste.net) are not responsible for their content.
Abuse reports should be emailed to us at