
I've put together a simple script that wraps the above and Oauth authentication and provides two cmdlets for getting and setting Darkmode for Outlook on the Web for a mailbox. How to make transparent email signatures in outlook in darkmode Enter Shop 2 subscribers Subscribe 37 Share 3.7K views 3 years ago how to make email signatures transparent even when receiving. $UsrConfig = :: Bind ($service, " OWA.UserOptions ", $folderid, :: All ) if ($UsrConfig. $folderid = new-object .FolderId ( :: Root ,$MailboxName )

So to Change this all we need is some simple code like the following In other Office applications, it may be Account. If Dark mode hasn't been enabled yet then the property shouldn't yet be in the Dictionary but if its is it will either be set to True of False depending on wether its enabled or not. To change your Outlook theme to dark mode (or another theme): Choose File > Office Account. The code to enable dark mode is pretty easy first you need the FolderId for the Non_IPM_Root folder of the Mailbox you want to work with, then bind to the UserConfiguration object which will return the Dictionary from the underlying PR_ROAMING_DICTIONARY property.

(if you want to do this in the Microsoft Graph you will need to cry into your beer at the moment because the Microsoft Graph still doesn't support either user configuration objects or accessing FAI Items 😭😭😭).

If you want to enable this setting for a user (or users) programmatically or just want to take stock of who is using this then you can use EWS to Read and Set the value in the OWA.UserOptions User Configuration Object in a Mailbox. This changes/creates a setting called " isDarkModeTheme" in the OWA.UserOptions User Configuration Object which is held in the FAI collection (Folder Associated Items) in the Non_IPM_Root of the Mailbox.
