PowerShell – Get email list from AD Distribution Group
$GroupName = “my group name” Get-ADGroupMember $($GroupName) | Get-ADUser -Properties mail | Select mail | ConvertTo-Csv -NoTypeInformation | Select -Skip 1 | % {$_ -replace ‘”‘, “”} | out-file “C:\temp\$($GroupName).txt”
Copy and paste this URL into your WordPress site to embed
Copy and paste this code into your site to embed