mirror of
https://github.com/Set-OutlookSignatures/Set-OutlookSignatures.git
synced 2026-04-26 10:45:52 +03:00
[GH-ISSUE #59] Error when executing the script #21
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Set-OutlookSignatures-Set-OutlookSignatures#21
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @AnotherFranck on GitHub (Nov 22, 2022).
Original GitHub issue: https://github.com/Set-OutlookSignatures/Set-OutlookSignatures/issues/59
Originally assigned to: @GruberMarkus, @AnotherFranck on GitHub.
Hi,
I have an issue when executing the script on client computer. There is an issue at the line 1039 when converting the user SID to a string...
or system.byte[]... It seems the sid has an invalid format... even if it looks good.
It works on my computer and my windows user that is just a domain user.
Is there a minimal powershell version to run this script?
Thanks
@GruberMarkus commented on GitHub (Nov 22, 2022):
Hi @AnotherFranck,
line 1039 does not directly deal with SID conversion. Are you using the latest version?
For further analysis, please reproduce the problem with running Set-OutlookSignatures with the -verbose parameter, and then post the log file here.
Windows Powershell 5.1 is the minimum version Set-OutlookSignatures is tested with.
@AnotherFranck commented on GitHub (Nov 22, 2022):
Hi @GruberMarkus,
Here is the exception log (in french! sorry), the error is the same even with the verbose option :(
Unexpected error. Exit.
New-Object : Impossible de convertir l'argument «0» (valeur «S-1-5-21-3197280838-653142112-32783236-11130») de «SecurityIdentifier» en type «
System.Byte[]»: «Impossible de convertir la valeur «S-1-5-21-3197280838-653142112-32783236-11130» en type «System.Byte[]». Erreur: «Impossible de
convertir la valeur «S-1-5-21-3197280838-653142112-32783236-11130» en type «System.Byte». Erreur: «Le format de la chaîne d'entrée est incorrect.»»»
Au caractère \server\Data\ITTOOLS\Set-OutlookSignatures\Set-OutlookSignatures.ps1:1039 : 34
I hope this will help.
Thanks
@GruberMarkus commented on GitHub (Nov 22, 2022):
Please post the complete log file.
Please also check if you are using the most recent version of Set-OutlookSignatures. You very likely use an older version, as line 1039 is not related to any SID operation in the most recent version.
@AnotherFranck commented on GitHub (Nov 22, 2022):
Hi @GruberMarkus
Let me try with the new version. I was using the 3.3.0. I have to test with a user now. I'll keep you updated.
Thanks
@AnotherFranck commented on GitHub (Nov 23, 2022):
Hi @GruberMarkus
I finally have the same issue.
script.log
Maybe it is related to the user account. I don't know since it is working for my own account.
I have this issue for a user on windows 10 and other one with windows 11.
We are only using the script to create the signature with html template.
Thanks
Regards
@GruberMarkus commented on GitHub (Nov 23, 2022):
Do I see correctly that you run the script on a client has connection to your local Active Directory?
Do I see correctly that the user is located in your local Active Directory, but the user's mailbox is hosted in Exchange Online?
@AnotherFranck commented on GitHub (Nov 23, 2022):
The user in connected to the lan and has a direct connection to the AD.
The user is located in the local Active Directory and the mailbox is hosted on Office 365.
@GruberMarkus commented on GitHub (Nov 23, 2022):
Please test again with the attached development version.
Use the '-verbose' parameter and post the complete script output.
Set-OutlookSignatures.ps1.txt
Delete the old Set-OutlookSignatures.ps1 file, download the file linked above and save it as new Set-OutlookSignatures.ps1.
@AnotherFranck commented on GitHub (Nov 23, 2022):
Hi @GruberMarkus
I ask the user to execute the script and it seems to work better, I need to check if the signature has been copied but from the log it does... I just have an error due to the fact I have no OOF template. We just need a signature in Outlook application.
scriptnobody.log
The signature is generated, I have checked with the user.
I will test a bit further.
Thanks
@GruberMarkus commented on GitHub (Nov 23, 2022):
The root cause for opening this issue has been found and the problem solved. I will therefore close this issue. A new version will be released within the next days.
Thanks for reporting and testing!
If you do not want to set OOF messages, configure the SetCurrentUserOOFMessage parameter (see Readme for details).
If you do not want to signatures to be set in Outlook Web, configure the SetCurrentUserOutlookWebSignature parameter (see Readme for details).
Your tenant seems to have signature roaming enabled, which causes an error. Have a look at the corresponding FAQ in Readme and consider disabling the feature in your tenant or setting DisableRoamingSignaturesTemporaryToggle in your Outlook registry configuration.
@AnotherFranck commented on GitHub (Nov 23, 2022):
Hi @GruberMarkus
I'll wait the new version :) I'll check the readme for the the options you mentioned.
Thanks for your time, your communication and your work. I appreciated it!