Finding SID from file RRS feed

  • Question

  • I have an external hard drive where a bunch of different users have saved files, I need to get the SID for these users to help them assist with migrating the files to SharePoint Online.

    Basicaly, what I want to do is extract the file authors SID from the file itself. Is there anyway to do this?

    The users have never signed in on my computer and aren't connected to our AD so the SID is nowhere else to be found.

    Thanks in advance!

    • Moved by Bill_Stewart Wednesday, September 4, 2019 6:02 PM This is not "scripts on demand"
    Monday, February 25, 2019 3:37 PM

All replies

  • What have you tried so far? Please show the results of your own research.

    Live long and prosper!


    Monday, February 25, 2019 5:50 PM
  • The SID can be of arbitrary length.

    'S-1-5-21-1997746983-321388823-153608166-1130' -match '(S-1-5-21-\d+-\d+-\d+-\d+)'

    This will match any line in a file for a SID string.


    • Edited by jrv Monday, February 25, 2019 8:48 PM
    Monday, February 25, 2019 8:45 PM