Skip to content

‘Any sufficiently advanced technology is indistinguishable from magic’ – Arthur C Clarke

  • Home
  • Portfolio
    • Websites
  • About

Category: Powershell

Posted on 06/08/201619/08/2017

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”

Tweets by jsgh81
Proudly powered by WordPress