[GH-ISSUE #112] Out-of-Office replies are not set when MailboxSpecificSignatureNames is enabled #46

Closed
opened 2026-02-27 20:30:59 +03:00 by kerem · 1 comment
Owner

Originally created by @GruberMarkus on GitHub (May 8, 2024).
Original GitHub issue: https://github.com/Set-OutlookSignatures/Set-OutlookSignatures/issues/112

Originally assigned to: @GruberMarkus on GitHub.

Issue happens in the latest release

  • I confirm that the issue happens in the latest release of Set-OutlookSignatures

Previously solved issues and documentation

  • I have searched through previous issues and documentation, but have not found an answer to my issue

Code of Conduct

  • I agree to follow this project's Code of Conduct

What happened?

When the parameter MailboxSpecificSignatureNames is enabled, out-of-office replies were not set because of a mismatch of temporary file names.

The error, as shown in the verbose log, is:

Copy-Item : Cannot find path 'C:\Users\UserX\AppData\Local\Temp\a314b00d-a430-4f58-a753-b5a5b76f89b8\9ae5
a0d8-49c7-4ecd-9d0b-b025dc4f372e OOFInternal.htm' because it does not exist.

The two GUIDs in the file path are individual. 'OOFInternal.htm' may also be 'OOFExternal.htm'.


This is a known problem in v4.12.0. The root cause has already been identified and fixed.

The updated code will be part of the next (patch) release, which is not yet scheduled. Contact me if you need access to the updated code earlier.

Verbose log

Process out of office (OOF) auto replies @2024-05-08T12:13:53+02:00@
VERBOSE: SetCurrentUserOOFMessage
VERBOSE: CheckLicense
VERBOSE: CheckGroupMembership
VERBOSE: CheckGroupMembership currentMailboxIsExchange 'True'
VERBOSE: CheckGroupMembership GraphOnly/isCloud 'True'
VERBOSE: CheckGroupMembership currentMailboxDomainDns ''
VERBOSE: CheckGroupMembership Initial check
VERBOSE: CheckGroupMembership valueA 'true'
VERBOSE: CheckGroupMembership group checked before without error 'EntraID\S-1-12-1-4092616986-1192721342-1740227465-714274506'
    Process common templates @2024-05-08T12:13:54+02:00@
      'ext EN frml (user has no manager).docx' (OOF ini index #2) @2024-05-08T12:13:54+02:00@
        Check permissions
          Allows
            Common: Template is classified as common template valid for all mailboxes
          Denies
            No group match for current mailbox, checking current user specific denies
            Group: Mailbox and current user are not member of any denied group
            No email address match for current mailbox, checking current user specific denies
            Email address: Mailbox and current user do not have any denied email address
            Replacement variable: No deny replacement variable evaluates to true
          Use template as there is at least one allow and no deny
    Process group specific templates @2024-05-08T12:13:54+02:00@
      'OOF external.docx' (OOF ini index #3) @2024-05-08T12:13:54+02:00@
        Check permissions
          Allows
            No group match for current mailbox, checking current user specific allows
            Group: Mailbox and current user are not member of any allowed group
          Do not use template as there is no allow or at least one deny
      'OOF internal.docx' (OOF ini index #4) @2024-05-08T12:13:54+02:00@
        Check permissions
          Allows
            No group match for current mailbox, checking current user specific allows
            Group: Mailbox and current user are not member of any allowed group
          Do not use template as there is no allow or at least one deny
    Process mailbox specific templates @2024-05-08T12:13:54+02:00@
    Process replacementvariable specific templates @2024-05-08T12:13:54+02:00@
      'ext EN frml (user has manager).docx' (OOF ini index #1) @2024-05-08T12:13:54+02:00@
        Check permissions
          Allows
            Replacement variable: No allowed replacement variable evaluates to true
          Do not use template as there is no allow or at least one deny
      'ext EN frml (user has no manager).docx' (OOF ini index #2) @2024-05-08T12:13:54+02:00@
        Check permissions
          Allows
            Replacement variable: No allowed replacement variable evaluates to true
          Do not use template as there is no allow or at least one deny
    Convert final OOF templates to HTM format @2024-05-08T12:13:54+02:00@
      Common OOF message: 'ext EN frml (user has no manager).docx' @2024-05-08T12:13:54+02:00@
        Create temporary file copy
        Replace picture variables
        Replace non-picture variables
        Export to HTM format
          Export high-res images
VERBOSE: DocxHighResImageConversion
VERBOSE: CheckLicense
VERBOSE: CheckGroupMembership
VERBOSE: CheckGroupMembership currentMailboxIsExchange 'True'
VERBOSE: CheckGroupMembership GraphOnly/isCloud 'True'
VERBOSE: CheckGroupMembership currentMailboxDomainDns ''
VERBOSE: CheckGroupMembership Initial check
VERBOSE: CheckGroupMembership valueA 'true'
VERBOSE: CheckGroupMembership group checked before without error 'EntraID\S-1-12-1-4092616986-1192721342-1740227465-714274506'
VERBOSE: DocxHighResImageConversion Bind to existing COM instance
VERBOSE: DocxHighResImageConversion Load low res htm
VERBOSE: DocxHighResImageConversion low res total image count '0'
VERBOSE: DocxHighResImageConversion low res local image count '0'
          Copy HTM image width and height attributes to style attribute
          Move CSS inline
          Add marker to final HTM file
          Modify connected folder name
        Remove temporary files
Copy-Item : Cannot find path 'C:\Users\UserX\AppData\Local\Temp\a314b00d-a430-4f58-a753-b5a5b76f89b8\9ae5
a0d8-49c7-4ecd-9d0b-b025dc4f372e OOFInternal.htm' because it does not exist.
At \\server\share\Set-OutlookSignatures\Set-OutlookSignatures.ps1:4864 char:17
+ ...             Copy-Item -Path (Join-Path -Path $script:tempDir -ChildPa ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\Users\UserX...OOFInternal.htm:String) [Copy-Item], 
ItemNotFoundException
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.CopyItemCommand
    Set out of office (OOF) auto replies @2024-05-08T12:13:56+02:00@
Originally created by @GruberMarkus on GitHub (May 8, 2024). Original GitHub issue: https://github.com/Set-OutlookSignatures/Set-OutlookSignatures/issues/112 Originally assigned to: @GruberMarkus on GitHub. ### Issue happens in the latest release - [x] I confirm that the issue happens in the latest release of Set-OutlookSignatures ### Previously solved issues and documentation - [X] I have searched through previous issues and documentation, but have not found an answer to my issue ### Code of Conduct - [X] I agree to follow this project's Code of Conduct ### What happened? When the parameter MailboxSpecificSignatureNames is enabled, out-of-office replies were not set because of a mismatch of temporary file names. The error, as shown in the verbose log, is: ``` Copy-Item : Cannot find path 'C:\Users\UserX\AppData\Local\Temp\a314b00d-a430-4f58-a753-b5a5b76f89b8\9ae5 a0d8-49c7-4ecd-9d0b-b025dc4f372e OOFInternal.htm' because it does not exist. ``` The two GUIDs in the file path are individual. 'OOFInternal.htm' may also be 'OOFExternal.htm'. <br>**This is a known problem in v4.12.0. The root cause has already been identified and fixed.** **The updated code will be part of the next (patch) release, which is not yet scheduled.** Contact me if you need access to the updated code earlier. ### Verbose log ```Text Process out of office (OOF) auto replies @2024-05-08T12:13:53+02:00@ VERBOSE: SetCurrentUserOOFMessage VERBOSE: CheckLicense VERBOSE: CheckGroupMembership VERBOSE: CheckGroupMembership currentMailboxIsExchange 'True' VERBOSE: CheckGroupMembership GraphOnly/isCloud 'True' VERBOSE: CheckGroupMembership currentMailboxDomainDns '' VERBOSE: CheckGroupMembership Initial check VERBOSE: CheckGroupMembership valueA 'true' VERBOSE: CheckGroupMembership group checked before without error 'EntraID\S-1-12-1-4092616986-1192721342-1740227465-714274506' Process common templates @2024-05-08T12:13:54+02:00@ 'ext EN frml (user has no manager).docx' (OOF ini index #2) @2024-05-08T12:13:54+02:00@ Check permissions Allows Common: Template is classified as common template valid for all mailboxes Denies No group match for current mailbox, checking current user specific denies Group: Mailbox and current user are not member of any denied group No email address match for current mailbox, checking current user specific denies Email address: Mailbox and current user do not have any denied email address Replacement variable: No deny replacement variable evaluates to true Use template as there is at least one allow and no deny Process group specific templates @2024-05-08T12:13:54+02:00@ 'OOF external.docx' (OOF ini index #3) @2024-05-08T12:13:54+02:00@ Check permissions Allows No group match for current mailbox, checking current user specific allows Group: Mailbox and current user are not member of any allowed group Do not use template as there is no allow or at least one deny 'OOF internal.docx' (OOF ini index #4) @2024-05-08T12:13:54+02:00@ Check permissions Allows No group match for current mailbox, checking current user specific allows Group: Mailbox and current user are not member of any allowed group Do not use template as there is no allow or at least one deny Process mailbox specific templates @2024-05-08T12:13:54+02:00@ Process replacementvariable specific templates @2024-05-08T12:13:54+02:00@ 'ext EN frml (user has manager).docx' (OOF ini index #1) @2024-05-08T12:13:54+02:00@ Check permissions Allows Replacement variable: No allowed replacement variable evaluates to true Do not use template as there is no allow or at least one deny 'ext EN frml (user has no manager).docx' (OOF ini index #2) @2024-05-08T12:13:54+02:00@ Check permissions Allows Replacement variable: No allowed replacement variable evaluates to true Do not use template as there is no allow or at least one deny Convert final OOF templates to HTM format @2024-05-08T12:13:54+02:00@ Common OOF message: 'ext EN frml (user has no manager).docx' @2024-05-08T12:13:54+02:00@ Create temporary file copy Replace picture variables Replace non-picture variables Export to HTM format Export high-res images VERBOSE: DocxHighResImageConversion VERBOSE: CheckLicense VERBOSE: CheckGroupMembership VERBOSE: CheckGroupMembership currentMailboxIsExchange 'True' VERBOSE: CheckGroupMembership GraphOnly/isCloud 'True' VERBOSE: CheckGroupMembership currentMailboxDomainDns '' VERBOSE: CheckGroupMembership Initial check VERBOSE: CheckGroupMembership valueA 'true' VERBOSE: CheckGroupMembership group checked before without error 'EntraID\S-1-12-1-4092616986-1192721342-1740227465-714274506' VERBOSE: DocxHighResImageConversion Bind to existing COM instance VERBOSE: DocxHighResImageConversion Load low res htm VERBOSE: DocxHighResImageConversion low res total image count '0' VERBOSE: DocxHighResImageConversion low res local image count '0' Copy HTM image width and height attributes to style attribute Move CSS inline Add marker to final HTM file Modify connected folder name Remove temporary files Copy-Item : Cannot find path 'C:\Users\UserX\AppData\Local\Temp\a314b00d-a430-4f58-a753-b5a5b76f89b8\9ae5 a0d8-49c7-4ecd-9d0b-b025dc4f372e OOFInternal.htm' because it does not exist. At \\server\share\Set-OutlookSignatures\Set-OutlookSignatures.ps1:4864 char:17 + ... Copy-Item -Path (Join-Path -Path $script:tempDir -ChildPa ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (C:\Users\UserX...OOFInternal.htm:String) [Copy-Item], ItemNotFoundException + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.CopyItemCommand Set out of office (OOF) auto replies @2024-05-08T12:13:56+02:00@ ```
kerem 2026-02-27 20:30:59 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@GruberMarkus commented on GitHub (May 24, 2024):

Solved in release v4.12.1: https://github.com/Set-OutlookSignatures/Set-OutlookSignatures/releases

<!-- gh-comment-id:2129053170 --> @GruberMarkus commented on GitHub (May 24, 2024): Solved in release v4.12.1: https://github.com/Set-OutlookSignatures/Set-OutlookSignatures/releases
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Set-OutlookSignatures-Set-OutlookSignatures#46
No description provided.