Converting User Mailboxes to Shared Mailboxes

Mailboxes can be converted from user mailboxes to shared mailboxes via the following PowerShell command:

Set-Mailbox SteveTest1@x500 -Type Shared

The following attributes are changed.

[Exchange value]
ExchangeUserAccountControl : None
ExchangeUserAccountControl: AccountDisabled


[Underlying AD attribute]

msExchUserAccountControl: 0
msExchUserAccountControl: 2
[Exchange value]
UserAccountControl : NormalAccount
UserAccountControl : AccountDisabled, NormalAccount


[Underlying AD attribute]
userAccountControl: 0x200 = ( NORMAL_ACCOUNT )
userAccountControl: 0x202 = ( ACCOUNTDISABLE | NORMAL_ACCOUNT )
[Exchange value]
IsShared : False
IsShared : True


[Underlying AD attribute]

msExchRecipientDisplayType: 1073741824
msExchRecipientDisplayType: 0
[Exchange value]
LinkedMasterAccount: NULL
LinkedMasterAccount: NT AUTHORITY\SELF

[Underlying AD attribute]
msExchMasterAccountSid: NULL

msExchMasterAccountSid: S-1-5-10
[Exchange value]
RecipientTypeDetails: UserMailbox
RecipientTypeDetails: SharedMailbox
[Underlying AD attribute]
msExchRecipientTypeDetails: 1
msExchRecipientTypeDetails: 4

Below is the output of the command with -Verbose.

Set-Mailbox SteveTest1@x500 -Type Shared -Verbose

VERBOSE: Set-Mailbox : Beginning processing.
VERBOSE: Set-Mailbox : Administrator Active Directory session settings are: View Entire Forest: ‘False’, Default Scope: ‘x500.local’, Configuration Domain Controller: ‘X500DC1.x500.local’,
VERBOSE: Set-Mailbox : Searching objects “SteveTest1@x500.co.uk” of type ADUser under the root “$null”.
VERBOSE: Set-Mailbox : Previous operation run on domain controller ‘X500DC2.x500.local’.
VERBOSE: Set-Mailbox : Processing object “x500.local/SB Testing/Steve Test1”.
VERBOSE: Setting mailbox “SteveTest1@x500.co.uk”.
VERBOSE: Set-Mailbox : Reading security descriptor of mailbox 9990cec1-bd38-47a1-b9ec-d5239344c563 from the Exchange store on server X500EX1.x500.local.
VERBOSE: Set-Mailbox : The mailbox’CN=Steve Test1,OU=SB Testing,DC=x500,DC=local’ doesn’t exist in store.
VERBOSE: Set-Mailbox : Reading active directory security descriptor of object x500.local/SB Testing/Steve Test1.
VERBOSE: Set-Mailbox : Applying RUS policy to the given recipient x500.local/SB Testing/Steve Test1 with the home domain controller “$null”.
VERBOSE: Set-Mailbox : The RUS server that will apply policies on the specified recipient is “X500EX1.x500.local”.
VERBOSE: Set-Mailbox : The properties changed are: “{ ExchangeUserAccountControl=’AccountDisabled’, UserAccountControl=’AccountDisabled, NormalAccount’, ExchangeSecurityDescriptor=’System.Security.AccessControl.RawSecurityDescriptor’, RecipientDisplayType=’MailboxUser’, RecipientTypeDetailsValue=’SharedMailbox’, MasterAccountSid=’S-1-5-10′ }”.
VERBOSE: Set-Mailbox : Saving object “x500.local/SB Testing/Steve Test1” of type “ADUser” and state “Changed”.
VERBOSE: Set-Mailbox : Previous operation run on domain controller ‘X500DC2.x500.local’.
VERBOSE: Set-Mailbox : Saving security descriptor of mailbox 9990cec1-bd38-47a1-b9ec-d5239344c563 in the Exchange store on server X500EX1.x500.local.
VERBOSE: Set-Mailbox : The mailbox’CN=Steve Test1,OU=SB Testing,DC=x500,DC=local’ doesn’t exist in store.
VERBOSE: Set-Mailbox : Saving active directory security descriptor of object x500.local/SB Testing/Steve Test1.
VERBOSE: Set-Mailbox : Ending processing.

 

Advertisements

One comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s