Announcement

Collapse
No announcement yet.

set a custom attribute for one group

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • set a custom attribute for one group

    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 mailboxes 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.

  • #2
    Re: set a custom attribute for one group

    Cant you use the -whatif switch to test it with?

    All Powershell cmdlets which change things have it
    Tom Jones
    MCT, MCSE (2000:Security & 2003), MCSA:Security & Messaging, MCDBA, MCDST, MCITP(EA, EMA, SA, EDA, ES, CS), MCTS, MCP, Sec+
    PhD, MSc, FIAP, MIITT
    IT Trainer / Consultant
    Ossian Ltd
    Scotland

    ** Remember to give credit where credit is due and leave reputation points where appropriate **

    Comment

    Working...
    X