Hello all,
I humbly request some help for writing a powershell script that will do the following:
- For each user that is a member of a AD group :
- Disable existing mailbox.
Create new mailbox and attach to each member of AD group put the new mailbox in the DR mailbox database and set the size to 100 MB max quota
Here is what I have so but with no luck:
Import-Module ActiveDirectory
$User=$env:username
$member = Get-ADGroupMember –Identity GRP_EXCH_MBX_DR | select Name, ObjectClass
If $User =$member
Disable-mailbox –Identity $member
Enable-Mailbox –Identity $member –Database DR -Type user -Quota 102400
I appreciate any help or comments.
Tx JeffL57
Jeffrey S. Lefever