Active Directory Group Management

Active Directory Group Management

avatar
(anonymous user)
Product: PowerShell Universal
Version: 5.2


I just installed PowerShell Universal and from the console imported PowerShellUniversal.ActiveDirectory.Scripts.

Is there a walkthrough anywhere on how to use this? My goal is to have a web app to allow users to manage Distribution Lists that they are the owner of?

All Comments (1)

avatar

That module just provides some standard functions wrapping the AD Cmdlets. You can see the source here:

github.com
It doesn’t provide any code for distribution lists. I actually haven’t don’t much exchange coding, but you should be able to list distribution lists by user.

learn.microsoft.com
For example, this would list the current user’s distribution lists they manage.

# User is special variable with the current user in an app
$DistributionList = Get-DistributionList -ManagedBy $User
New-UDTable -Data $DistributionList


Using cmdlets like Get-DistributionListMember and Remove\Add-DistributionListMember, you could also view and update who are in those groups.

Adam Driscoll
PowerShell Expert and Developer at Devolutions