Get-ADGroupmember using powershell

 


Get-ADGroupMember -Server "abc.com" -Identity "Domain Admins" -Recursive | Get-ADUser | Select Name, samaccountname, Enabled | export-csv c:\Temp\Domain-Admins.csv

Comments

Popular posts from this blog

Copy file to multiple remote server using powershell