How to add owner to a distribution group
Set-Group -Identity “DL Group Name” -ManagedBy “Domain Name\UserName”
Set-Group -Identity “DL Group Name” -ManagedBy “Domain Name\UserName”
How to add Permission to distribution group for Owner After adding Managedby user on a distribution group, better to give read and write access permission for Owner
Add-ADPermission -Identity “DL Group Name” -User “DomainName\user” -AccessRights ReadProperty, WriteProperty -Properties ‘Member’
Add-ADPermission -Identity “DL Group Name” -User “DomainName\user” -AccessRights ReadProperty, WriteProperty -Properties ‘Member’
How to change the owner of a distribution group
Set-DistributionGroup -Identity “DL Group Name” -ManagedBy “DomainName\NewOwnerUser”
Add-ADPermission -Identity “DL Group Name” -User “DomainName\NewOwnerUser” -AccessRights ReadProperty, WriteProperty -Properties ‘Member’
Set-DistributionGroup -Identity “DL Group Name” -ManagedBy “DomainName\NewOwnerUser”
Add-ADPermission -Identity “DL Group Name” -User “DomainName\NewOwnerUser” -AccessRights ReadProperty, WriteProperty -Properties ‘Member’
How to add a second or additional owner for a distribution group Giving read and write access permission at active directory level will allow the other user to function as a co owner for a Distribution Group
Set-DistributionGroup -ManagedBy ‘New Onwer Name’,'Old Owner Name’ -Identity ‘Distribution Group Name’
Add-ADPermission -Identity “DL Group Name” -User “DomainName\SecondOwner” -AccessRights ReadProperty, WriteProperty -Properties ‘Member’
Set-DistributionGroup -ManagedBy ‘New Onwer Name’,'Old Owner Name’ -Identity ‘Distribution Group Name’
Add-ADPermission -Identity “DL Group Name” -User “DomainName\SecondOwner” -AccessRights ReadProperty, WriteProperty -Properties ‘Member’
How to remove additional owner from a distribution group
Remove-ADPermission -Identity “DL Group Name” -User ” DomainName\SecondOwner ” -AccessRights ReadProperty, WriteProperty -Properties ‘Member’
Remove-ADPermission -Identity “DL Group Name” -User ” DomainName\SecondOwner ” -AccessRights ReadProperty, WriteProperty -Properties ‘Member’
How to rename a Display name and Alias Name for a Distribution Group
Set-DistributionGroup -Identity ‘Distribution Group Name’ -DisplayName ‘Enter New Name’ -Alias “New_Alias”
How to export the members list from a Distribution Group
Get-DistributionGroupMember -Identity ‘Distribution Group Name” | FL Name
Get-DistributionGroupMember -Identity ‘Distribution Group Name” | FL Name
How to add a New Member to the distribution Group
Add-DistributionGroupMember -Identity “Distribution Group Name” -Member “UserName’
Add-DistributionGroupMember -Identity “Distribution Group Name” -Member “UserName’
How to disable or remove a Distribution Group
Disable-DistributionGroup -Identity “Distribution Group Name”
Remove-DistributionGroup -Identity “Distribution Group Name”
Remove-DistributionGroup -Identity “Distribution Group Name”
How to mail enable or mail disable a security group If we have an active directory security group available and if we want to mail enable that security group, we can use the below shell command and email address will be created for that security group
Enable-DistributionGroup –Identity “DL Display Name”
Disable-DistributionGroup –Identity “DL Display Name”
Enable-DistributionGroup –Identity “DL Display Name”
Disable-DistributionGroup –Identity “DL Display Name”
How to allow external users to send email to the distribution list
Set-DistributionGroup -Identity ‘Distribution Group Name’ -RequireSenderAuthenticationEnabled $True
Set-DistributionGroup -Identity ‘Distribution Group Name’ -RequireSenderAuthenticationEnabled $True
How to allow owners to approve or restrict member to join or to leave a Distribution Group
Set-DistributionGroup -MemberJoinRestriction ‘ApprovalRequired’ -MemberDepartRestriction ‘Closed’ -Identity ‘Distribution Group Name’
How to allow only few users to send email to distribution list
Set-DistributionGroup -AcceptMessagesOnlyFromSendersOrMembers ‘User Name 1’,’User Name 2′ -RequireSenderAuthenticationEnabled $True -Identity ‘Distribution Group Name’
Set-DistributionGroup -AcceptMessagesOnlyFromSendersOrMembers ‘User Name 1’,’User Name 2′ -RequireSenderAuthenticationEnabled $True -Identity ‘Distribution Group Name’
How to restrict few users to send email to distribution list
Set-DistributionGroup -AcceptMessagesOnlyFromSendersOrMembers “All Users” -RequireSenderAuthenticationEnabled $True -Identity ‘Distribution Group Name’ -RejectMessagesFromSendersOrMembers ‘User Name 1’,’User Name 2′
Set-DistributionGroup -AcceptMessagesOnlyFromSendersOrMembers “All Users” -RequireSenderAuthenticationEnabled $True -Identity ‘Distribution Group Name’ -RejectMessagesFromSendersOrMembers ‘User Name 1’,’User Name 2′
How to set a Message Moderator to allow emails and to bypass approval from few users
Set-DistributionGroup -ModerationEnabled $true -ModeratedBy ‘Moderator User Name’ -BypassModerationFromSendersOrMembers ‘User don’t require approval’ -Identity ‘Distribution Group Name’
How to hide a distribution group from Gloabll Address List
Set-DistributionGroup -Identity ‘Distribution Group Name’ -HiddenFromAddressListsEnabled $true
Set-DistributionGroup -Identity ‘Distribution Group Name’ -HiddenFromAddressListsEnabled $true
How to add additional email address to a distribution list
Set-DistributionGroup -Identity ‘Distribution Group Name’ -EmailAddresses ‘SMTP:existingemailaddress’,'smtp:Newemailaddress’
How to create a dynamic distribution list
New-DynamicDistributionGroup -Name “Name of DDG” -Alias “Alias_Name” -IncludedRecipients “MailboxUsers,MailContacts” -OrganizationalUnit “DomainName.com/Users” -ConditionalDepartment “DepartmentName1″,”DepartmentName2″ -RecipientContainer “DomainName.com”
New-DynamicDistributionGroup -Name “Name of DDG” -Alias “Alias_Name” -IncludedRecipients “MailboxUsers,MailContacts” -OrganizationalUnit “DomainName.com/Users” -ConditionalDepartment “DepartmentName1″,”DepartmentName2″ -RecipientContainer “DomainName.com”
No comments:
Post a Comment