ctp93
asked on
Using Group Memebrship to set Mailbox Features
We have a potential situation where we would need to essentially deactivate a group of mailboxes quickly. Not remove them, but temporarily render them un-useable. THe thought is to turn off MAPI, POP3, Active Sync, OWA...etc from the Mailbox Features page.
Is there any way to set up a group and have it ready to go such that all we have to do is add people to the group to get the desired effect?
Thanks
Is there any way to set up a group and have it ready to go such that all we have to do is add people to the group to get the desired effect?
Thanks
if you know anything about power shell then you can write your own script which would query the Group you created, create a list of users, then parse through those and disable their mailboxesusing the Exchange command console.
By default when disabled they are kept for 30 days. You can change this value though. Then when ready just reconnect the mailboxes through exchange managment console.
By default when disabled they are kept for 30 days. You can change this value though. Then when ready just reconnect the mailboxes through exchange managment console.
you could put them in a group or ou
get-mailbox -organizationalunit <name> | set-casmailbox -popenabled:$false
get-distributiongroupmembe r <name> | foreach-object { set-casmailbox $_.Name -popenabled:$false }
get-mailbox -organizationalunit <name> | set-casmailbox -popenabled:$false
get-distributiongroupmembe
Nice Endital1097. How about:
get-mailbox -organizationalunit <name> | foreach-object { Disable-mailbox $_.Name}
Not sure of the syntax here, but wouldnt' that get every person within the OU then disable their mailbox where $_.Name is the variable?
get-mailbox -organizationalunit <name> | foreach-object { Disable-mailbox $_.Name}
Not sure of the syntax here, but wouldnt' that get every person within the OU then disable their mailbox where $_.Name is the variable?
Yours would delete the mailbox
I thought we just wanted to disable features
You also don't need the foreach
I thought we just wanted to disable features
You also don't need the foreach
You would want to add to mine -imapenabled:$false etc
ASKER
Endital1097,
If we want to go the Group route, we'd use:
get-mailbox -organizationalunit <name> | foreach-object { Disable-mailbox $_.Name}
Correct? And we'd have to add them to the group prior to running the command right?
If we want to go the Group route, we'd use:
get-mailbox -organizationalunit <name> | foreach-object { Disable-mailbox $_.Name}
Correct? And we'd have to add them to the group prior to running the command right?
ASKER
Wait...that was backwards. We'd use:
get-distributiongroupmembe r <name> | foreach-object { set-casmailbox $_.Name -popenabled:$false }
And then do the same for imap, owa, activesynce...etc
get-distributiongroupmembe
And then do the same for imap, owa, activesynce...etc
Yes run the following to see features to disable
Get-casmailbox you| fl
Get-casmailbox you| fl
How'd that work out for ya ctp93?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks Endital1097. Looks like this will work for our project
The problem is if they are already connected with Outlook...
You could change the Storage limits on the account so that it is set to Prohibit SEND/RCV at 1KB :)
But be aware that may take a little time to propagate normally.