PS C:\Users\bhagler> powershell.exe -file 'c:\drivers\desktops\Set-OutlookSignatures\Set-OutlookSignatures.ps1' -SignatureTemplatePath '..\Main\' -SignatureIniPath '..\Main\_Signatures.ini' -UseHtmTemplates '$true' -Verbose Start script @2022-07-29T09:40:51-07:00@ Script notes @2022-07-29T09:40:51-07:00@ Script : Set-OutlookSignatures Version: XXXVersionStringXXX Web : https://github.com/GruberMarkus/Set-OutlookSignatures License: MIT license (see '.\docs\LICENSE.txt' for details and copyright) Check parameters and script environment @2022-07-29T09:40:51-07:00@ PowerShell: '5.1.22000.653', 'Desktop' PowerShell bitness: 64-bit process on a 64-bit operating system PowerShell parameters: '' Script path: 'C:\drivers\desktops\Set-OutlookSignatures\Set-OutlookSignatures.ps1' TrustsToCheckForGroups: '*' SignatureTemplatePath: '..\Main\' SignatureIniPath: '..\Main\_Signatures.ini' VERBOSE: Original ini content VERBOSE: [sig-master.htm] VERBOSE: defaultNew VERBOSE: defaultReplyFwd VERBOSE: VERBOSE: Parsed ini content VERBOSE: Ini index #: '0' VERBOSE: Tags: [ = sig-master.htm] [defaultReplyFwd] [defaultNew] SetCurrentUserOutlookWebSignature: 'True' SetCurrentUserOOFMessage: 'False' UseHtmTemplates: '$true' GraphOnly: 'True' GraphConfigFile: '.\config\default graph config.ps1' VERBOSE: # This file allows defining the default configuration for connecting to Microsoft Graph for Set-OutlookSignatures VERBOSE: # VERBOSE: # This script is executed as a whole once per Set-OutlookSignatures run. VERBOSE: # VERBOSE: # Attention: The configuration file is executed as part of Set-OutlookSignatures.ps1 and is not checked for any harmful content. Please only allow qualified technicians write access to this file, only use it to to define replacement variables and test it thoroughly. VERBOSE: # VERBOSE: # Active Directory property names are case sensitive. VERBOSE: # It is required to use full lowercase Active Directory property names. VERBOSE: # VERBOSE: # A variable defined in this file overrides the definition of the same variable defined earlier in the script. VERBOSE: # VERBOSE: # VERBOSE: # What is the recommended approach for custom configuration files? VERBOSE: # You should not change the default configuration file `'.\config\default graph config.ps1'`, as it might be changed in a future release of Set-OutlookSignatures. In this case, you would have to sort out the changes yourself. VERBOSE: # VERBOSE: # The following steps are recommended: VERBOSE: # 1. Create a new custom configuration file in a separate folder. VERBOSE: # 2. The first step in the new custom configuration file should be to load the default configuration file: VERBOSE: # # Loading default replacement variables shipped with Set-OutlookSignatures VERBOSE: # . ([System.Management.Automation.ScriptBlock]::Create((Get-Content -LiteralPath '\\server\share\folder\Set-OutlookSignatures\config\default graph config.ps1' -Raw))) VERBOSE: # 3. After importing the default configuration file, existing replacement variables can be altered with custom definitions and new replacement variables can be added. VERBOSE: # 4. Instead of altering existing replacement variables, it is recommended to create new replacement variables with modified content. VERBOSE: # 5. Start Set-OutlookSignatures with the parameter 'GraphConfigFile' pointing to the new custom configuration file. VERBOSE: VERBOSE: VERBOSE: # Client ID VERBOSE: # The default client ID is defined in the developer's Azure tenant as multi-tenant, so it can be used everywhere VERBOSE: # Can be replaced with a Client ID from the own tenant VERBOSE: # Scopes (please provide admin consent): 'https://graph.microsoft.com/openid', 'https://graph.microsoft.com/email', 'https://graph.microsoft.com/profile', 'https://graph.microsoft.com/user.read.all', 'https://graph.microsoft.com/group.read.all', 'https://graph.microsoft.com/mailboxsettings.readwrite', 'https://graph.microsoft.com/EWS.AccessAsUser.All' VERBOSE: # Redirect URI: 'http://localhost', configure for "mobile and desktop applications" VERBOSE: # Enable 'Allow public client flows' to make Windows Integrated Authentication (SSO) work for Azure AD joined devices VERBOSE: #$GraphClientID = 'beea8249-8c98-4c76-92f6-ce3c468a61e6' VERBOSE: $GraphClientID = 'fdfe877b-9b3f-451c-81cb-8d1d9de9af5a' VERBOSE: VERBOSE: # Endpoint version VERBOSE: $GraphEndpointVersion = 'v1.0' VERBOSE: VERBOSE: VERBOSE: # User properties to select VERBOSE: # Custom Graph attributes: 'extension__' VERBOSE: $GraphUserProperties = @( VERBOSE: 'aboutMe', VERBOSE: 'businessPhones', VERBOSE: 'city', VERBOSE: 'companyName', VERBOSE: 'country', VERBOSE: 'department', VERBOSE: 'displayName', VERBOSE: 'faxNumber', VERBOSE: 'givenName', VERBOSE: 'jobTitle', VERBOSE: 'mail', VERBOSE: 'mailNickname', VERBOSE: 'mobilePhone', VERBOSE: 'officeLocation', VERBOSE: 'onPremisesDistinguishedName', VERBOSE: 'onPremisesDomainName', VERBOSE: 'onPremisesExtensionAttributes', VERBOSE: 'onPremisesImmutableId', VERBOSE: 'onPremisesSamAccountName', VERBOSE: 'onPremisesSecurityIdentifier', VERBOSE: 'onPremisesUserPrincipalName', VERBOSE: 'postalCode', VERBOSE: 'proxyAddresses', VERBOSE: 'state', VERBOSE: 'streetAddress', VERBOSE: 'surname', VERBOSE: 'usageLocation', VERBOSE: 'userPrincipalName' VERBOSE: ) VERBOSE: VERBOSE: VERBOSE: # Mapping Graph user properties to on-prem Active Directory user properties VERBOSE: # This way, we do not need to differentiate between on-prem, hybrid and cloud in '.\config\default replacement variables.ps1' VERBOSE: # Active Directory attribute names on the left, Graph attribute names on the right VERBOSE: # Custom Graph attributes: 'extension__' VERBOSE: $GraphUserAttributeMapping = @{ VERBOSE: givenname = 'givenName' VERBOSE: sn = 'surname' VERBOSE: department = 'department' VERBOSE: title = 'jobTitle' VERBOSE: streetaddress = 'streetAddress' VERBOSE: postalcode = 'postalCode' VERBOSE: l = 'city' VERBOSE: state = 'state' VERBOSE: co = 'country' VERBOSE: telephonenumber = 'businessPhones' VERBOSE: facsimiletelephonenumber = 'faxNumber' VERBOSE: mobile = 'mobilePhone' VERBOSE: mail = 'mail' VERBOSE: extensionattribute1 = 'onPremisesExtensionAttributes.extensionAttribute1' VERBOSE: extensionattribute2 = 'onPremisesExtensionAttributes.extensionAttribute2' VERBOSE: extensionattribute3 = 'onPremisesExtensionAttributes.extensionAttribute3' VERBOSE: extensionattribute4 = 'onPremisesExtensionAttributes.extensionAttribute4' VERBOSE: extensionattribute5 = 'onPremisesExtensionAttributes.extensionAttribute5' VERBOSE: extensionattribute6 = 'onPremisesExtensionAttributes.extensionAttribute6' VERBOSE: extensionattribute7 = 'onPremisesExtensionAttributes.extensionAttribute7' VERBOSE: extensionattribute8 = 'onPremisesExtensionAttributes.extensionAttribute8' VERBOSE: extensionattribute9 = 'onPremisesExtensionAttributes.extensionAttribute9' VERBOSE: extensionattribute10 = 'onPremisesExtensionAttributes.extensionAttribute10' VERBOSE: extensionattribute11 = 'onPremisesExtensionAttributes.extensionAttribute11' VERBOSE: extensionattribute12 = 'onPremisesExtensionAttributes.extensionAttribute12' VERBOSE: extensionattribute13 = 'onPremisesExtensionAttributes.extensionAttribute13' VERBOSE: extensionattribute14 = 'onPremisesExtensionAttributes.extensionAttribute14' VERBOSE: extensionattribute15 = 'onPremisesExtensionAttributes.extensionAttribute15' VERBOSE: objectsid = 'onPremisesSecurityIdentifier' VERBOSE: distinguishedname = 'onPremisesDistinguishedName' VERBOSE: company = 'companyName' VERBOSE: displayname = 'displayName' VERBOSE: proxyAddresses = 'proxyAddresses' VERBOSE: userprincipalname = 'userPrincipalName' VERBOSE: physicaldeliveryofficename = 'officeLocation' VERBOSE: mailboxsettings = 'mailboxsettings' VERBOSE: mailnickname = 'mailNickname' VERBOSE: } GraphCredentialFile: '' ReplacementVariableConfigFile: '..\Main\replacement variables.ps1' VERBOSE: # Loading default replacement variables shipped with Set-OutlookSignatures VERBOSE: . ([System.Management.Automation.ScriptBlock]::Create((Get-Content -LiteralPath '..\Set-OutlookSignatures\config\default replacement variables.ps1' -Raw))) VERBOSE: $PhoneFormat = '###-###-####' VERBOSE: $NMLS = 'Individual: NMLS ID# ' VERBOSE: $CorpPhone = '614-523-0301' VERBOSE: $CorpFax = '614-655-6500' VERBOSE: $CorpWebApplyNow = 'https://www.developersmortgage.com/loan-app/?siteId=2278421322&lar=john&workFlowId=23921' VERBOSE: VERBOSE: $ReplaceHash['$CURRENTUSERSTATE$'] = [string]$ADPropsCurrentUser.state VERBOSE: $ReplaceHash['$CURRENTUSERTELEPHONEFORMATED$'] = if ($ADPropsCurrentUser.telephonenumber) {"{0:$PhoneFormat}" -f [int64](Out-String -InputObject $ADPropsCurrentUser.telephonenumber)}else{[string]$CorpPhone + ' Ext: ' + $ADPropsCurrentUser.extensionattribute1} VERBOSE: $ReplaceHash['$CURRENTUSERFAXFORMATED$'] = if ($ADPropsCurrentUser.facsimiletelephonenumber) {"{0:$PhoneFormat}" -f [int64](Out-String -InputObject $ADPropsCurrentUser.facsimiletelephonenumber)}else{[string]$CorpFax} VERBOSE: $ReplaceHash['$CURRENTUSERMOBILE$'] = "{0:$PhoneFormat}" -f [int64](Out-String -InputObject $ADPropsCurrentUser.mobile) VERBOSE: $ReplaceHash['$CURRENTUSERNMLS$'] = if ($ADPropsCurrentUser.extensionattribute2) {[string]$NMLS + $ADPropsCurrentUser.extensionattribute2}else{""} VERBOSE: $ReplaceHash['$CURRENTUSERWEB$'] = if ($ADPropsCurrentUser.extensionattribute3) {[string]$ADPropsCurrentUser.extensionattribute3}else{$CorpWebApplyNow} VERBOSE: $ReplaceHash['$CURRENTUSERPHOTODELETEEMPTY$'] = if ($ADPropsCurrentUser.extensionattribute4.Contains("np")) {""}else{$ADPropsCurrentUser.thumbnailphoto} EmbedImagesInHtml: 'True' CreateRtfSignatures: 'False' CreateTxtSignatures: 'True' DeleteUserCreatedSignatures: 'True' DeleteScriptCreatedSignaturesWithoutTemplate: 'True' AdditionalSignaturePath: 'C:\Users\bhagler\Documents\Outlook Signatures' SimulateUser: '' SimulateMailboxes: '' Get Outlook and Word version, default Outlook profile @2022-07-29T09:40:52-07:00@ Outlook registry version: 16.0 Outlook default profile: Outlook Outlook file version: 16.0.15330.20264 Roaming signatures disabled in Outlook: 0 Word registry version: 16.0 Get Outlook signature file path(s) @2022-07-29T09:40:52-07:00@ C:\Users\bhagler\AppData\Roaming\Microsoft\Signatures Get e-mail addresses from Outlook profiles and corresponding registry paths @2022-07-29T09:40:52-07:00@ HKCU\Software\Microsoft\Office\16.0\Outlook\Profiles\Outlook\9375CFF0413111d3B88A00104B2A6676\00000002 mebtester@hladmc.com Enumerate domains @2022-07-29T09:40:53-07:00@ Parameter GraphOnly set to 'True', ignore user's Active Directory in favor of Graph/Azure AD. Get AD properties of currently logged in user and assigned manager @2022-07-29T09:40:53-07:00@ Currently logged in user Set up environment for connection to Microsoft Graph @2022-07-29T09:40:53-07:00@ VERBOSE: Loading module from path 'C:\Users\bhagler\AppData\Local\Temp\cf282a77-7183-40b0-ac8a-5f419c34a83c\msal.ps\msal.ps.psd1'. VERBOSE: Loading module from path 'C:\Users\bhagler\AppData\Local\Temp\cf282a77-7183-40b0-ac8a-5f419c34a83c\msal.ps\.\internal\Assert-DirectoryExists.ps1'. VERBOSE: Dot-sourcing the script file 'C:\Users\bhagler\AppData\Local\Temp\cf282a77-7183-40b0-ac8a-5f419c34a83c\msal.ps\.\internal\Assert-DirectoryExists.ps1'. VERBOSE: Loading module from path 'C:\Users\bhagler\AppData\Local\Temp\cf282a77-7183-40b0-ac8a-5f419c34a83c\msal.ps\.\internal\ConvertFrom-SecureStringAsPlainText.ps1'. VERBOSE: Dot-sourcing the script file 'C:\Users\bhagler\AppData\Local\Temp\cf282a77-7183-40b0-ac8a-5f419c34a83c\msal.ps\.\internal\ConvertFrom-SecureStringAsPlainText.ps1'. VERBOSE: Loading module from path 'C:\Users\bhagler\AppData\Local\Temp\cf282a77-7183-40b0-ac8a-5f419c34a83c\msal.ps\.\internal\ConvertTo-Dictionary.ps1'. VERBOSE: Dot-sourcing the script file 'C:\Users\bhagler\AppData\Local\Temp\cf282a77-7183-40b0-ac8a-5f419c34a83c\msal.ps\.\internal\ConvertTo-Dictionary.ps1'. VERBOSE: Loading module from path 'C:\Users\bhagler\AppData\Local\Temp\cf282a77-7183-40b0-ac8a-5f419c34a83c\msal.ps\.\internal\Export-Config.ps1'. VERBOSE: Dot-sourcing the script file 'C:\Users\bhagler\AppData\Local\Temp\cf282a77-7183-40b0-ac8a-5f419c34a83c\msal.ps\.\internal\Export-Config.ps1'. VERBOSE: Loading module from path 'C:\Users\bhagler\AppData\Local\Temp\cf282a77-7183-40b0-ac8a-5f419c34a83c\msal.ps\.\internal\Get-DeviceRegistrationStatus.ps1'. VERBOSE: Dot-sourcing the script file 'C:\Users\bhagler\AppData\Local\Temp\cf282a77-7183-40b0-ac8a-5f419c34a83c\msal.ps\.\internal\Get-DeviceRegistrationStatus.ps1'. VERBOSE: Loading module from path 'C:\Users\bhagler\AppData\Local\Temp\cf282a77-7183-40b0-ac8a-5f419c34a83c\msal.ps\.\internal\Get-ObjectPropertyValue.ps1'. VERBOSE: Dot-sourcing the script file 'C:\Users\bhagler\AppData\Local\Temp\cf282a77-7183-40b0-ac8a-5f419c34a83c\msal.ps\.\internal\Get-ObjectPropertyValue.ps1'. VERBOSE: Loading module from path 'C:\Users\bhagler\AppData\Local\Temp\cf282a77-7183-40b0-ac8a-5f419c34a83c\msal.ps\.\internal\Import-Config.ps1'. VERBOSE: Dot-sourcing the script file 'C:\Users\bhagler\AppData\Local\Temp\cf282a77-7183-40b0-ac8a-5f419c34a83c\msal.ps\.\internal\Import-Config.ps1'. VERBOSE: Loading module from path 'C:\Users\bhagler\AppData\Local\Temp\cf282a77-7183-40b0-ac8a-5f419c34a83c\msal.ps\.\internal\Select-PsBoundParameters.ps1'. VERBOSE: Dot-sourcing the script file 'C:\Users\bhagler\AppData\Local\Temp\cf282a77-7183-40b0-ac8a-5f419c34a83c\msal.ps\.\internal\Select-PsBoundParameters.ps1'. VERBOSE: Loading module from path 'C:\Users\bhagler\AppData\Local\Temp\cf282a77-7183-40b0-ac8a-5f419c34a83c\msal.ps\.\internal\Set-Config.ps1'. VERBOSE: Dot-sourcing the script file 'C:\Users\bhagler\AppData\Local\Temp\cf282a77-7183-40b0-ac8a-5f419c34a83c\msal.ps\.\internal\Set-Config.ps1'. VERBOSE: Loading module from path 'C:\Users\bhagler\AppData\Local\Temp\cf282a77-7183-40b0-ac8a-5f419c34a83c\msal.ps\.\internal\Write-HostPrompt.ps1'. VERBOSE: Dot-sourcing the script file 'C:\Users\bhagler\AppData\Local\Temp\cf282a77-7183-40b0-ac8a-5f419c34a83c\msal.ps\.\internal\Write-HostPrompt.ps1'. VERBOSE: Loading module from path 'C:\Users\bhagler\AppData\Local\Temp\cf282a77-7183-40b0-ac8a-5f419c34a83c\msal.ps\.\Add-MsalClientApplication.ps1'. VERBOSE: Dot-sourcing the script file 'C:\Users\bhagler\AppData\Local\Temp\cf282a77-7183-40b0-ac8a-5f419c34a83c\msal.ps\.\Add-MsalClientApplication.ps1'. VERBOSE: Loading module from path 'C:\Users\bhagler\AppData\Local\Temp\cf282a77-7183-40b0-ac8a-5f419c34a83c\msal.ps\.\Clear-MsalTokenCache.ps1'. VERBOSE: Dot-sourcing the script file 'C:\Users\bhagler\AppData\Local\Temp\cf282a77-7183-40b0-ac8a-5f419c34a83c\msal.ps\.\Clear-MsalTokenCache.ps1'. VERBOSE: Loading module from path 'C:\Users\bhagler\AppData\Local\Temp\cf282a77-7183-40b0-ac8a-5f419c34a83c\msal.ps\.\Enable-MsalTokenCacheOnDisk.ps1'. VERBOSE: Dot-sourcing the script file 'C:\Users\bhagler\AppData\Local\Temp\cf282a77-7183-40b0-ac8a-5f419c34a83c\msal.ps\.\Enable-MsalTokenCacheOnDisk.ps1'. VERBOSE: Loading module from path 'C:\Users\bhagler\AppData\Local\Temp\cf282a77-7183-40b0-ac8a-5f419c34a83c\msal.ps\.\Get-MsalAccount.ps1'. VERBOSE: Dot-sourcing the script file 'C:\Users\bhagler\AppData\Local\Temp\cf282a77-7183-40b0-ac8a-5f419c34a83c\msal.ps\.\Get-MsalAccount.ps1'. VERBOSE: Loading module from path 'C:\Users\bhagler\AppData\Local\Temp\cf282a77-7183-40b0-ac8a-5f419c34a83c\msal.ps\.\Get-MsalClientApplication.ps1'. VERBOSE: Dot-sourcing the script file 'C:\Users\bhagler\AppData\Local\Temp\cf282a77-7183-40b0-ac8a-5f419c34a83c\msal.ps\.\Get-MsalClientApplication.ps1'. VERBOSE: Loading module from path 'C:\Users\bhagler\AppData\Local\Temp\cf282a77-7183-40b0-ac8a-5f419c34a83c\msal.ps\.\Get-MsalFeatureSupport.ps1'. VERBOSE: Dot-sourcing the script file 'C:\Users\bhagler\AppData\Local\Temp\cf282a77-7183-40b0-ac8a-5f419c34a83c\msal.ps\.\Get-MsalFeatureSupport.ps1'. VERBOSE: Loading module from path 'C:\Users\bhagler\AppData\Local\Temp\cf282a77-7183-40b0-ac8a-5f419c34a83c\msal.ps\.\Get-MsalToken.ps1'. VERBOSE: Dot-sourcing the script file 'C:\Users\bhagler\AppData\Local\Temp\cf282a77-7183-40b0-ac8a-5f419c34a83c\msal.ps\.\Get-MsalToken.ps1'. VERBOSE: Loading module from path 'C:\Users\bhagler\AppData\Local\Temp\cf282a77-7183-40b0-ac8a-5f419c34a83c\msal.ps\.\New-MsalClientApplication.ps1'. VERBOSE: Dot-sourcing the script file 'C:\Users\bhagler\AppData\Local\Temp\cf282a77-7183-40b0-ac8a-5f419c34a83c\msal.ps\.\New-MsalClientApplication.ps1'. VERBOSE: Loading module from path 'C:\Users\bhagler\AppData\Local\Temp\cf282a77-7183-40b0-ac8a-5f419c34a83c\msal.ps\.\Remove-MsalClientApplication.ps1'. VERBOSE: Dot-sourcing the script file 'C:\Users\bhagler\AppData\Local\Temp\cf282a77-7183-40b0-ac8a-5f419c34a83c\msal.ps\.\Remove-MsalClientApplication.ps1'. VERBOSE: Loading module from path 'C:\Users\bhagler\AppData\Local\Temp\cf282a77-7183-40b0-ac8a-5f419c34a83c\msal.ps\.\Select-MsalClientApplication.ps1'. VERBOSE: Dot-sourcing the script file 'C:\Users\bhagler\AppData\Local\Temp\cf282a77-7183-40b0-ac8a-5f419c34a83c\msal.ps\.\Select-MsalClientApplication.ps1'. VERBOSE: Loading module from path 'C:\Users\bhagler\AppData\Local\Temp\cf282a77-7183-40b0-ac8a-5f419c34a83c\msal.ps\MSAL.PS.psm1'. VERBOSE: Exporting function 'Assert-DirectoryExists'. VERBOSE: Exporting function 'ConvertFrom-SecureStringAsPlainText'. VERBOSE: Exporting function 'ConvertTo-Dictionary'. VERBOSE: Exporting function 'Export-Config'. VERBOSE: Exporting function 'Get-DeviceRegistrationStatus'. VERBOSE: Exporting function 'Get-ObjectPropertyValue'. VERBOSE: Exporting function 'Import-Config'. VERBOSE: Exporting function 'Select-PsBoundParameters'. VERBOSE: Exporting function 'Set-Config'. VERBOSE: Exporting function 'Write-HostPrompt'. VERBOSE: Exporting function 'Add-MsalClientApplication'. VERBOSE: Exporting function 'Clear-MsalTokenCache'. VERBOSE: Exporting function 'Enable-MsalTokenCacheOnDisk'. VERBOSE: Exporting function 'Get-MsalAccount'. VERBOSE: Exporting function 'Get-MsalClientApplication'. VERBOSE: Exporting function 'Get-MsalFeatureSupport'. VERBOSE: Exporting function 'Get-MsalToken'. VERBOSE: Exporting function 'New-MsalClientApplication'. VERBOSE: Exporting function 'Remove-MsalClientApplication'. VERBOSE: Exporting function 'Select-MsalClientApplication'. VERBOSE: Exporting function 'Catch-AssemblyLoadError'. VERBOSE: Importing function 'Add-MsalClientApplication'. VERBOSE: Importing function 'Clear-MsalTokenCache'. VERBOSE: Importing function 'Enable-MsalTokenCacheOnDisk'. VERBOSE: Importing function 'Get-MsalAccount'. VERBOSE: Importing function 'Get-MsalClientApplication'. VERBOSE: Importing function 'Get-MsalFeatureSupport'. VERBOSE: Importing function 'Get-MsalToken'. VERBOSE: Importing function 'New-MsalClientApplication'. VERBOSE: Importing function 'Remove-MsalClientApplication'. VERBOSE: Importing function 'Select-MsalClientApplication'. Execute config file 'C:\drivers\desktops\Set-OutlookSignatures\config\default graph config.ps1' MSAL.PS Graph token cache: 'C:\Users\bhagler\AppData\Local\MSAL.PS\MSAL.PS.msalcache.bin3' VERBOSE: Graph Token: eyJ0eXAiOiJKV1QiLCJub25jZSI6Ik1LVzFId25yUDNoLXdPSU96OE8wenk2YjBLRXdPbDdMM0FOaDdVT3EtVTQiLCJhbGciOiJSUzI1NiIsIng1dCI6IjJaUXBKM1VwYmpBWVhZR2FYRUpsOGxWMFR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of content type application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 VERBOSE: GET with 0-byte payload VERBOSE: received -1-byte response of content type application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 VERBOSE: GET with 0-byte payload VERBOSE: received -1-byte response of content type image/jpeg VERBOSE: GET with 0-byte payload VERBOSE: EXO Token: eyJ0eXAiOiJKV1QiLCJub25jZSI6IjNXTEI1VVRMWGhBYUlFV0c5azhXOTc2U21kLXducFlPS1p5cUx5Szl3LWciLCJhbGciOiJSUzI1NiIsIng1dCI6IjJaUXBKM1VwYmpBWVhZR2FYRUpsOGxWMFRPSSIsImtpZCI6IjJaUXBKM1VwYmpBWVhZR2FYRUpsOGxWMFRPSSJ9.eyJhdWQiOiJodHR wczovL291dGxvb2sub2ZmaWNlLmNvbSIsImlzcyI6Imh0dHBzOi8vc3RzLndpbmRvd3MubmV0Lzg4YjcyMWY1LTBjNTUtNDIwMy1hNjFkLTBiZDA4YzFmZjU2NC8iLCJpYXQiOjE2NTkxMTE2ODQsIm5iZiI6MTY1OTExMTY4NCwiZXhwIjoxNjU5MTE2NDY0LCJhY2N0IjowLCJhY3IiOiIxIiw iYWlvIjoiQVZRQXEvOFRBQUFBdlcvakN6ODc3aFZ3N0Q3QWVKYmNQWWtZZnN4RkFMMmRGNXJjWHJGeE1wUmNhVENTYVBxQ0R2NllMYVdCSS9nQzg4OHpwTng2WHdSckh4VkhBQURsYmFUQzN0TTJvMDF2WUtmRko1ckJrWW89IiwiYW1yIjpbInB3ZCIsInJzYSIsIm1mYSJdLCJhcHBfZGlzcGx heW5hbWUiOiJTZXQtT3V0bG9va3NpZ25hdHVyZXMiLCJhcHBpZCI6ImZkZmU4NzdiLTliM2YtNDUxYy04MWNiLThkMWQ5ZGU5YWY1YSIsImFwcGlkYWNyIjoiMCIsImRldmljZWlkIjoiOGNiYjc0NzEtMzZmMy00MDNhLThmNjMtZWE3YzgyNzYzZThmIiwiZW5mcG9saW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Us8QAmwdTQFAGdL2C90G9uypyG1YoMMw5renlyYF9KKkfKv6aKcM0rurwDbFrerP zhc8N4e9uZD1P7j-cZ5CNZNeX5JAIXYBgsv1KLXzSDuRuUmmBA0b48GagjS4mPDUM_fofTgb5YzDcr8uWKbMt4FK58RL4wyBmgf1A_Qfl4-b0Dw mebtester@hladmc.com Manager of currently logged in user No manager found Get AD properties of each mailbox @2022-07-29T09:40:59-07:00@ Mailbox 'mebtester@hladmc.com' VERBOSE: GET with 0-byte payload VERBOSE: received -1-byte response of content type application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 VERBOSE: GET with 0-byte payload VERBOSE: received -1-byte response of content type image/jpeg VERBOSE: GET with 0-byte payload Sort mailbox list: User's primary mailbox, mailboxes in default Outlook profile, others @2022-07-29T09:41:00-07:00@ AD mail attribute of currently logged in user: mebtester@hladmc.com Matching mailbox found Mailbox priority (highest to lowest) mebtester@hladmc.com Get all signature template files and categorize them @2022-07-29T09:41:00-07:00@ 'sig-master.htm' (ini index #0) Outlook signature name: 'sig-master' Common template (no group or e-mail address allow tags specified) Default signature for new e-mails [defaultNew] Default signature for replies and forwards [defaultReplyFwd] Start Word background process @2022-07-29T09:41:00-07:00@ VERBOSE: The object written to the pipeline is an instance of the type "Microsoft.Office.Interop.Word.ApplicationClass" from the component's primary interoperability assembly. If this type exposes different members than the IDispatch members, scripts that are written to work with this object might not work if the primary interoperability assembly is not installed. VERBOSE: The object written to the pipeline is an instance of the type "Microsoft.Office.Interop.Word.ApplicationClass" from the component's primary interoperability assembly. If this type exposes different members than the IDispatch members, scripts that are written to work with this object might not work if the primary interoperability assembly is not installed. Mailbox mebtester@hladmc.com @2022-07-29T09:41:04-07:00@ Get group membership of mailbox @2022-07-29T09:41:04-07:00@ Microsoft Graph VERBOSE: GET with 0-byte payload VERBOSE: received -1-byte response of content type application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 VERBOSE: S-1-12-1-3742540979-1154638426-362168235-1122683047 VERBOSE: S-1-12-1-1533528803-1264546454-4072903839-437725390 Get SMTP addresses @2022-07-29T09:41:05-07:00@ VERBOSE: mebtester@hladmco.onmicrosoft.com VERBOSE: mebtester@hladmc.com Get data for replacement variables @2022-07-29T09:41:05-07:00@ Execute config file 'C:\drivers\desktops\Main\replacement variables.ps1' VERBOSE: $CURRENTMAILBOXDEPARTMENT$: IT VERBOSE: $CURRENTMAILBOXDISPLAYNAME$: Bob Tester VERBOSE: $CURRENTMAILBOXEXTATTR1$: 1998 VERBOSE: $CURRENTMAILBOXEXTATTR4$: np VERBOSE: $CURRENTMAILBOXGIVENNAME$: Bob VERBOSE: $CURRENTMAILBOXLOCATION$: Tucson VERBOSE: $CURRENTMAILBOXMAIL$: mebtester@hladmc.com VERBOSE: $CURRENTMAILBOXMAILNICKNAME$: mebtester VERBOSE: $CURRENTMAILBOXMOBILE$: 5205553456 VERBOSE: $CURRENTMAILBOXNAMEWITHTITLES$: Bob Tester VERBOSE: $CURRENTMAILBOXOFFICE$: 5205551234 VERBOSE: $CURRENTMAILBOXPHOTO$: Photo available VERBOSE: $CURRENTMAILBOXPHOTODELETEEMPTY$: Photo available VERBOSE: $CURRENTMAILBOXPOSTALCODE$: 85711 VERBOSE: $CURRENTMAILBOXSTREETADDRESS$: 123 Main Street VERBOSE: $CURRENTMAILBOXSURNAME$: Tester VERBOSE: $CURRENTMAILBOXTITLE$: IT Tester VERBOSE: $CURRENTUSERDEPARTMENT$: IT VERBOSE: $CURRENTUSERDISPLAYNAME$: Bob Tester VERBOSE: $CURRENTUSEREXTATTR1$: 1998 VERBOSE: $CURRENTUSEREXTATTR4$: np VERBOSE: $CURRENTUSERFAXFORMATED$: 614-655-6500 VERBOSE: $CURRENTUSERGIVENNAME$: Bob VERBOSE: $CURRENTUSERLOCATION$: Tucson VERBOSE: $CURRENTUSERMAIL$: mebtester@hladmc.com VERBOSE: $CURRENTUSERMAILNICKNAME$: mebtester VERBOSE: $CURRENTUSERMOBILE$: 520-555-3456 VERBOSE: $CURRENTUSERNAMEWITHTITLES$: Bob Tester VERBOSE: $CURRENTUSEROFFICE$: 5205551234 VERBOSE: $CURRENTUSERPHOTO$: Photo available VERBOSE: $CURRENTUSERPHOTODELETEEMPTY$: Photo available VERBOSE: $CURRENTUSERPOSTALCODE$: 85711 VERBOSE: $CURRENTUSERSTATE$: AZ VERBOSE: $CURRENTUSERSTREETADDRESS$: 123 Main Street VERBOSE: $CURRENTUSERSURNAME$: Tester VERBOSE: $CURRENTUSERTELEPHONEFORMATED$: 614-523-0301 Ext: 1998 VERBOSE: $CURRENTUSERTITLE$: IT Tester VERBOSE: $CURRENTUSERWEB$: https://www.developersmortgage.com/loan-app/?siteId=2278421322&lar=john&workFlowId=23921 Process common templates @2022-07-29T09:41:05-07:00@ 'sig-master.htm' (ini index #0) @2022-07-29T09:41:05-07:00@ Check permissions Allows Common: Template is classified as common template valid for all mailboxes Denies Group: Mailbox is not member of any denied group E-Mail address: Mailbox does not have any denied e-mail address Use template as there is at least one allow and no deny for this mailbox Outlook signature name: 'sig-master' Create temporary file copy Replace picture variables VERBOSE: The object written to the pipeline is an instance of the type "mshtml.HTMLDocumentClass" from the component's primary interoperability assembly. If this type exposes different members than the IDispatch members, scripts that are written to work with this object might not work if the primary interoperability assembly is not installed. Replace non-picture variables Export to TXT format Embed local files in HTM format and add marker Copy signature files to 'C:\Users\bhagler\AppData\Roaming\Microsoft\Signatures' Remove temporary files Set signature as default for new messages Set signature as default for reply/forward messages Process group specific templates @2022-07-29T09:41:09-07:00@ Process mailbox specific templates @2022-07-29T09:41:09-07:00@ Set up environment for connection to Outlook Web @2022-07-29T09:41:10-07:00@ VERBOSE: Loading module from path 'C:\Users\bhagler\AppData\Local\Temp\3d8ae3e6-fae2-4a23-83db-e180db2abf09.dll'. Connect to Outlook Web @2022-07-29T09:41:10-07:00@ Try Windows Integrated Auth Try OAuth with Autodiscover Set Outlook Web signature @2022-07-29T09:41:56-07:00@ Same default signature for new and reply/forward: 'sig-master' Remove old signatures created by this script, which are no longer centrally available @2022-07-29T09:41:56-07:00@ Remove user created signatures @2022-07-29T09:41:56-07:00@ Copy signatures to AdditionalSignaturePath @2022-07-29T09:41:56-07:00@ 'C:\Users\bhagler\Documents\Outlook Signatures' Clean-up @2022-07-29T09:41:56-07:00@ VERBOSE: Removing the imported "Add-MsalClientApplication" function. VERBOSE: Removing the imported "Clear-MsalTokenCache" function. VERBOSE: Removing the imported "Enable-MsalTokenCacheOnDisk" function. VERBOSE: Removing the imported "Get-MsalAccount" function. VERBOSE: Removing the imported "Get-MsalClientApplication" function. VERBOSE: Removing the imported "Get-MsalFeatureSupport" function. VERBOSE: Removing the imported "Get-MsalToken" function. VERBOSE: Removing the imported "New-MsalClientApplication" function. VERBOSE: Removing the imported "Remove-MsalClientApplication" function. VERBOSE: Removing the imported "Select-MsalClientApplication" function. End script @2022-07-29T09:41:57-07:00@ PS C:\Users\bhagler>