
If ($Profiles -eq $Null -or $Profiles.Count -ne 1) # This script can only deal with a single (default profile) more code needed to handle multiple profiles $Profiles = (Get-ChildItem HKCU:\Software\Microsoft\Office\16.0\Outlook\Profiles).PSChildName
Outlook 365 work offline setting update#
This means that users can’t update signatures themselves, but it was an OK workaround given limited time. If more than one profile exists, update the common settings for Outlook.If only one was found, set things up to update the signature information for that profile.Fetching the profile information from the registry.Given I was doing this on a wet Sunday afternoon,
Outlook 365 work offline setting how to#
Profiles and then must get into the business of figuring out how to update which Probably encounter most often (based on a limited test). The default profile name is Outlook, and it’s the one that you’ll Each profile has its own settings, including $UserProperties = Get-AzureADUser -ObjectId $UserId # Retrieve the properties of the user from Azure Active Directory $UserId = (ConvertFrom-Json $UserAccount).UserUpn $UserAccount = Get-ItemProperty -Path HKCU:\Software\Microsoft\Office\Outlook\Settings -Name Accounts | Select -ExpandProperty Accounts I then use the user principal name to fetch account properties from Azure Active Directory: My solution is to fetch the accounts information and parse out the user principal name. The first issue was to find out from the registry which Azure Active Directory account is used with Outlook. Outlook and the SystemĪs noted in my other article, Outlook for Windows stores information about its settings in the system registry.

So I decided to explore the topic by putting together my own version. To support Office ProPlus (click to run) or not using Azure Active Directory. Scripts I met were old and suffered from one problem or another, like failing As it turns out, there’s quite a few methods suggested in various blogs and articles, mostly on the theme of how to use information from Active Directory into signatures ( here’s an example). After finishing my article about Microsoft developing cloud signatures for Outlook, I decided to look at what’s involved with updating an Outlook signature with PowerShell.
