Distribution and Security Groups

I was asked to day at work, "What would be the quickest way to add all of the members of a Distribution Group to a Security Group?", the reason of course being because you cannot assign permissions to a Distribution group.

My answer was, "To script it."

And I never would have thought how easy it would be

Get-QADGroupMember "My_DG_GROUP" | Add-QADMemberOf -Group "MY_SG_GROUP"
  • Amount of time spent on Task: 30 seconds
  • Financial investment in that task: Depends on how much you make per hour :)
  • The reaction I got for doing something so complicated "so quickly": PRICELESS!!!!!