Join-Object
Join-Object copied to clipboard
"The property sid cannot be found on the left object." error should refer to the caller
Stackoverflow: https://stackoverflow.com/questions/76721639/compare-arrays-in-powershell
$Array1 = ConvertFrom-SourceTable '
Srvname Loginname sid passwordhash
Srv1 L1 0xdbc 0xfsfhdfh
Srv2 L2 0xdbe 0xfsfhdfe
Srv3 L3 0xdbc 0xfsfhdfd'
$Array2 = ConvertFrom-SourceTable '
Srvname Loginname sid passwordhash
Srv1 L1 0xdbd 0xfsfhdfh
Srv2 L2 0xdbe 0xfsfhdfh
Srv3 L3 0xdba 0xfsfhdfb'
$Array1 | OuterJoin $Array2 -on sid, passwordhash
ProcessObject:
Line |
95 | $steppablePipeline.Process($_)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| The property sid cannot be found on the left object.