Add "System OU Name" to get-cmdevice cmdlet
Add "System OU Name" to get-cmdevice cmdlet.
This is helpful information when troubleshooting and collecting information on multiple devices.
Get-CMDevice queries data from the SMS_CollectionMember class which does not contain the System OU Name information.
You can get this information by using Get-CMResource instead, which queries the SMS_Resource class which contains additional discovery information. You can find the SystemOUName property there.