concept domain sid in category powershell
appears as: domain SIDs, Domain SID

This is an excerpt from Manning's book PowerShell Deep Dives.
PowerShell has a number of ways to get domain SIDs and trusted domain SIDs. Each of these has their own strengths and weaknesses. I have listed them in order of my personal preference: