Get AD Group Member Details from Trusted Domains

Posted on Posted in Active Directory, Powershell

The vast majority of active directory powershell cmdlets don’t need any enhancement but there is one in particular that I felt could use an alteration:  Get-ADGroupMember.  When using this command it will return [Microsoft.ActiveDirectory.Management.ADObject] types which can be thrown to a switch statement depending on objectclass and you will get the object’s home AD info.  However, when […]

Add Parent OU in DN and CN Path Format Using Regex Match

Posted on Posted in Active Directory, Powershell

Yet another solution for grabbing Parent OU paths

 

O365 – Get Tenant Role Groups and Members

Posted on Posted in Office 365, Powershell

I needed something quick to report on all O365 tenant role group members and ran into a minor annoyance when I found the role GUID is needed to list role members.  The following will get, sort, and display all tenant role members