The Get-DistributionGroup
command is supposed to list distribution groups in a domain but I can't get it to run on my server.
After some Googling I found that Import-Module ActiveDirectory
needs to be run first, but what I get when I run that is:
Import-Module : The specified module 'ActiveDirectory' was not loaded because no valid module file was found in any module directory.
My questions are
- How do I install this module into my PowerShell module directory? I thought it was supposed to do this automatically
- Once I have it installed, do I just run
Import-Module ActiveDirectory
and then I can runGet-DistributionGroup
to list my dist groups?