Quantcast
Channel: PowerShell.org » All Posts
Viewing all articles
Browse latest Browse all 13067

Need a powershell script

$
0
0

Hi,

Need a poweshell script for this simple requirement. I have one DL called “Example”. Here I wanted to set the Custom attribute 13 for this group members mailbox as Yes and rest of the mailbox custom attribute 13 as No.I tried something here. Please let me know any corrections?

$Group = “DL name”

if (mailbox -filter -eq{ $group})

Set-Mailbox -CustomAttribute13 ‘No’

else

Set-Mailbox -CustomAttribute13 ‘Yes’

will it work. I donot have test environment to test this. If some one help will be appreciated more.

Thanks


Viewing all articles
Browse latest Browse all 13067

Trending Articles