If you would like to read the other parts in this blog series please go to:
- Logon Script and PowerShell ADAssist Tool (Part 1)
- PowerShell ADAssist Tool and List-ADUsers Script (Part 2)
- PowerShell AD User Properties Script (Part 3)
- Exchange – PowerShell AD User Properties Script (Part 4)
This is the final blog in this series about the user accounts’ administration, and here I will present this Windows Form with two additional tabs: Exchange General and Mailbox Settings. This is the updated Display-ADUserProperties.ps1 script.
From the previous blog (part 3) in this series, you’ve learned that this script gives you the ability to:
- Display and edit a user’s attributes in AD
- Change a user’s password settings
- Unlock / disable / enable a user’s account and manage account’s expiration
- Delete / move an account and clear the selected user’s account attributes
- View / export / import a user’s settings from an XML file
- Manage a user’s groups’ membership in AD
- Apply template settings
- Copy and create a new user account in AD
In addition to the above list, this script being updated with the Exchange cmdlets enables you to do the following:
- Create a new user and its mailbox or create a mailbox for the existing user
- Hide, disable and remove a mailbox
- Clear, add/edit, remove the custom attributes
- Manage the mailbox storage limits and item retention settings
- View / change the delivery options and delivery restrictions
Please note that Display-ADUserProperties.ps1 script is launched by both the AD-Assist.ps1 or List-ADuser.ps1 script, and it is placed in the same folder – ADAssist Application (in my example it is extracted inside C:\PSScript\AD-Assist folder).
If an account you want to administer is not mailbox enabled, you will see the ‘Enable User Mailbox’ button. To enable this account, click the ‘Enable User Mailbox’ button and in the form that pops up, select the checkbox to make the form’s controls enabled. From the drop down list, select the Exchange database and click the ‘Create New User Mailbox’ button as shown in the picture 1.
Note: you will see this button for every user that is mailbox enabled, but hasn’t logged on to mailbox yet, so there is no data to return. After the user logs on, this button will no longer appear.
The Exchange General tab, displays info about the user’s mailbox, such as the number of total items, its size, the database name, and the dates it is being created/modified. All mailbox’s custom attributes presented in the textboxes are editable and to commit their change (clear, add/edit, remove attributes in their corresponding textboxes) click the ‘Update Exchange Info’ button. To hide/unhide the mailbox or to disable/remove it, use the buttons provided on the form.
The Mailbox Settings tab, displays different settings, like the mailbox storage limits, its items’ retention settings, delivery options and delivery restrictions. All these settings could be changed (clear, add/edit, remove) by the controls and buttons provided on the form.
Important: I’ve updated the Display-ADUserProperties.ps1 script and the download file (ADAssist Tool) just before publishing this post and you can download this compressed file from the download/application section of this site.