[GH-ISSUE #51] Error positional parameter #17

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

Originally created by @dakolta on GitHub (Aug 20, 2022).
Original GitHub issue: https://github.com/Set-OutlookSignatures/Set-OutlookSignatures/issues/51

Just uploaded v3.3.0-alpha2 and executed the script and got the following error:

Unexpected error. Exit.
Remove-Item : A positional parameter cannot be found that accepts argument 'System.__ComObject'.
At C:\drivers\desktops\Set-OutlookSignatures\Set-OutlookSignatures.ps1:2663 char:29
+ ...             Remove-Item (Join-Path -Path (Split-Path $path) -ChildPat ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) [Remove-Item], ParameterBindingException
    + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.RemoveItemCommand

Also attaching a verbose output:
SetSig.txt

Originally created by @dakolta on GitHub (Aug 20, 2022). Original GitHub issue: https://github.com/Set-OutlookSignatures/Set-OutlookSignatures/issues/51 Just uploaded v3.3.0-alpha2 and executed the script and got the following error: ``` Unexpected error. Exit. Remove-Item : A positional parameter cannot be found that accepts argument 'System.__ComObject'. At C:\drivers\desktops\Set-OutlookSignatures\Set-OutlookSignatures.ps1:2663 char:29 + ... Remove-Item (Join-Path -Path (Split-Path $path) -ChildPat ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidArgument: (:) [Remove-Item], ParameterBindingException + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.RemoveItemCommand ``` Also attaching a verbose output: [SetSig.txt](https://github.com/GruberMarkus/Set-OutlookSignatures/files/9385934/SetSig.txt)
kerem closed this issue 2026-02-27 20:30:50 +03:00
Author
Owner

@GruberMarkus commented on GitHub (Aug 20, 2022):

Thanks for pointing this out.
v3.3.0-alpha3 fixes this regression error.

<!-- gh-comment-id:1221214137 --> @GruberMarkus commented on GitHub (Aug 20, 2022): Thanks for pointing this out. v3.3.0-alpha3 fixes this regression error.
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#17
No description provided.