Tech Sol
Saturday, 4 July 2020
How to get Members from Multiple Groups in PowerShell
How to get Members from Multiple Groups in PowerShell
$groups=get-content "c:\groups.txt"
ForEach ($Group in $Groups)
{Get-ADGroupMember $Group -recursive | Select-Object Name}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment