So I found a script that searches a file share and out puts, the file name, user\group, permissions. I need to add to it so it can give me the SID for each user or group.
I was able to get the column to show up but when I run it, the script fails when it tries to look up the SID? I'm not very good with scripting and I'm a bit surprised I made it this far
I know nothing about PowerShell (I even had to have gilraen tell me what language you were using).
But maybe something from https://devblogs.microsoft.com/scriptin ... of-a-file/. It looks like the Format-list output has the SID you want. I'm not sure how you'd feed it the name, but maybe something in there will be helpful.
Black Lives Matter
Isgrimnur - Facebook makes you hate your friends and family. LinkedIn makes you hate you co-workers. NextDoor makes you hate your neighbors.