PowerShell to export desired Active Directory Group Members to a CVS File

This is simple script for choose some Active Directory group and export members that belong selected AD group to CSV file.

 Get-ADGroupMember “YOUR GROUP” | Select Name, SamAccountName | Export-Csv -Path “C:\Temp\Output.csv” -NoTypeInformation

Comments

Popular posts from this blog

Cisco VPN client 5.0.07.0410 and Windows 10 Problems (Solved)

Script for remote cancel all print job

Find hard disk bad sectors (error 7) if exist on remote computers - Script 2017