[GH-ISSUE #8] Passing empty value for AdditionalSignaturePath leads to error #2

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

Originally created by @GruberMarkus on GitHub (Jun 30, 2021).
Original GitHub issue: https://github.com/Set-OutlookSignatures/Set-OutlookSignatures/issues/8

Passing an empty value for parameter AdditionalSignaturePath leads to an error on line 744 of Set-OutlookSignatures.ps1 (v1.6.0).

Log output :
Script started
Script notes
Script: Set-OutlookSignatures.ps1
Version: 1.6.0
Author: Markus Gruber
License: MIT License (see license.txt for details and copyright)
Web: https://github.com/GruberMarkus/Set-OutlookSignatures
Check parameters and script environment
Script name: 'C:\ALexclude\Set-OutlookSignatures\Set-OutlookSignatures.ps1'
Script path: 'C:\ALexclude\Set-OutlookSignatures'
SignatureTemplatePath: '.\templates\Signatures DOCX'
ReplacementVariableConfigFile: '.\config\default replacement variables.txt'
DomainsToCheckForGroups: '*'
DeleteUserCreatedSignatures: 'False'
SetCurrentUserOutlookWebSignature: 'True'
SetCurrentUserOOFMessage: 'True'
OOFTemplatePath: '.\templates\Out of Office DOCX'
AdditionalSignaturePath: ''
AdditionalSignaturePathFolder: 'Outlook signatures'
Join-Path : Das Argument kann nicht an den Parameter "Path" gebunden werden, da es sich um eine leere Zeichenfolge
handelt.
In C:\ALexclude\Set-OutlookSignatures\Set-OutlookSignatures.ps1:744 Zeichen:49

  • ... onalSignaturePath = (Join-Path -Path $AdditionalSignaturePath -ChildP ...
  •                                      ~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidData: (:) [Join-Path], ParameterBindingValidationException

    • FullyQualifiedErrorId : ParameterArgumentValidationErrorEmptyStringNotAllowed,Microsoft.PowerShell.Commands.Join
      PathCommand

      Problem connecting to, creating or reading from folder ''. Deactivating feature.
      UseHtmTemplates: 'False'

Originally created by @GruberMarkus on GitHub (Jun 30, 2021). Original GitHub issue: https://github.com/Set-OutlookSignatures/Set-OutlookSignatures/issues/8 Passing an empty value for parameter AdditionalSignaturePath leads to an error on line 744 of Set-OutlookSignatures.ps1 (v1.6.0). Log output : Script started Script notes Script: Set-OutlookSignatures.ps1 Version: 1.6.0 Author: Markus Gruber License: MIT License (see license.txt for details and copyright) Web: https://github.com/GruberMarkus/Set-OutlookSignatures Check parameters and script environment Script name: 'C:\ALexclude\Set-OutlookSignatures\Set-OutlookSignatures.ps1' Script path: 'C:\ALexclude\Set-OutlookSignatures' SignatureTemplatePath: '.\templates\Signatures DOCX\' ReplacementVariableConfigFile: '.\config\default replacement variables.txt' DomainsToCheckForGroups: '*' DeleteUserCreatedSignatures: 'False' SetCurrentUserOutlookWebSignature: 'True' SetCurrentUserOOFMessage: 'True' OOFTemplatePath: '.\templates\Out of Office DOCX\' AdditionalSignaturePath: '' AdditionalSignaturePathFolder: 'Outlook signatures' Join-Path : Das Argument kann nicht an den Parameter "Path" gebunden werden, da es sich um eine leere Zeichenfolge handelt. In C:\ALexclude\Set-OutlookSignatures\Set-OutlookSignatures.ps1:744 Zeichen:49 + ... onalSignaturePath = (Join-Path -Path $AdditionalSignaturePath -ChildP ... + ~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidData: (:) [Join-Path], ParameterBindingValidationException + FullyQualifiedErrorId : ParameterArgumentValidationErrorEmptyStringNotAllowed,Microsoft.PowerShell.Commands.Join PathCommand Problem connecting to, creating or reading from folder ''. Deactivating feature. UseHtmTemplates: 'False'
kerem closed this issue 2026-02-27 20:30:44 +03:00
Author
Owner

@GruberMarkus commented on GitHub (Jun 30, 2021):

Fixed in the commit above and in release v1.6.1.

<!-- gh-comment-id:871106389 --> @GruberMarkus commented on GitHub (Jun 30, 2021): Fixed in the commit above and in release v1.6.1.
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#2
No description provided.