Yes, you can use the exact same syntax.
Delivery management
Glenn Maxwell
10,146
Reputation points
Hi All
i want to set delivery management to mail enabled security group.
i.e i have a mail enabled security group lets say group1 and i want to allow user1 and user2 can only send emails to this mail enabled security group.
i belive below syntax will work for DL will it also work for mail enabled security group
Set-distributiongroup "group1@contos.com" -AcceptMessagesOnlyFrom @{Add="user1@Company portal .com","user2@Company portal .com"}