Handy one-liner to get a list of groups listed in a users MemberOf property. Import-Module ActiveDirectory (Get-ADUser -Properties MemberOf | Select-Object MemberOf).MemberOf
Who is Gareth?Established in the mid eighties, Gareth took to computers at an early age. Growing to lead a career in IT, now spanning over a decade. His big passion is fitness, and studying the impact it has on a persons life. As a regular at the gym he uses his workouts to push his body beyond the limit. When not working, Gareth spends his evenings developing ideas to generate viable business solutions encompassing his passions, IT + Fitness.