Using Try/Catch for PowerShell to switch between the two cmdlet gro group member?
Using PowerShell script If Else or Try catch, how can I modify the below script, if the Group member type = Computer, then use Get-MGDevice to display the display name.