Articles in the "Mailbox Delegate Management" series
- Super duper delegate retrieval script
- PowerShell module for managing Exchange mailbox delegates
- Small update to delegate management module
- Delegate management module updated to v1.3.5
- Delegate management module updated to support Exchange Online
- Delegate management module updated to v1.4.5
- Delegate management module updated to 1.4.6
- Delegate management module updated to v1.5.0 [This article]
- Delegate management module updated
It had been some time since I updated the delegate management PowerShell module. I started to update it last year after I decided to move the admin configuration settings to their own file, but didn’t complete it. After a user of the module recently contacted me about adding one of the supported options for delegate meeting forwarding, I went back and finished updating it. These are the changes:
- Configuration settings have been moved to a file. This allows for drop-in updates to the module without you having to reconfigure your settings again. The file, DelegateManagementSettings.xml, should be located in the same directory as the module. A default file is included in the download, but you can also use the new Set-DelegateManagementSetting cmdlet with the CreateDefaultFile parameter to have the module create one for you. You can run Get-DelegateManagementSetting to view your current settings. If you want to change one or more settings for the current session, the Set-DelegateManagementSetting cmdlet can do that, and you can use the Persist parameter if you want the changed setting to be written to the file. (Comment-based help is available for both new cmdlets, e.g., Get-Help Set-DelegateManagementSetting .)
- The following functionality has been moved from static values to configurable settings: whether to use Autodiscover, specifying an EWS URL, whether to use impersonation, and if permission should be added/set by default for the Deleted Items and Sent Items folders when adding a delegate.
- The Azure AD module is no longer needed for managing delegates in Exchange Online.
- The ability to specify that meeting requests for the owner/manager should not be forwarded to delegates. (This is supported with Exchange 2013+ and Exchange Online mailboxes.) NoForward has been added as a valid value with the MeetingRequestDeliveryScope parameter.
- All functions for connecting via PowerShell to on-premises Exchange and Exchange Online have been removed. Connection to the appropriate environment should be handled externally to the module, as would usually be done with any other module or cmdlet. The exception to this is for Exchange Web Services (seeing as it is a stateless connection). If managing delegates in Exchange Online, the first time you run a delegate cmdlet it will prompt for EWS credentials, which will be used for all future cmdlets in the same shell. On-premises will use the current user credentials. If you would like the module to be able to store and recall credentials automatically (in Credential Manager, for example), specify credentials for on-premises, or other credential options, let me know.
The updated module, along with a settings file, is here:
DelegateManagement.zip (9.2 KiB)