Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Can I compare a domain SID to a User Account's SIDHistory property?

$
0
0

Hi,

The goal is to find out how many User accounts in domain 'A' have a SidHistory entry in their SidHistory property from domain 'B'.

So if the domain SID is something like S-1-5-21-3806532393-412345416-1447653367, I'd like to use Powershell to extract each user account's SidHistory values (multiple ones if they exist) and compare to see if this domain SID exists on a entry in the SidHistory attribute.  I've done some prelim testing, but SidHistory seems tricky.

Can I do this in Powershell?


Thanks for your help! SdeDot


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>