Giter Club home page Giter Club logo

Comments (11)

GruberMarkus avatar GruberMarkus commented on May 28, 2024

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.

from set-outlooksignatures.

AnotherFranck avatar AnotherFranck commented on May 28, 2024

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

  • ... serSIDs += (New-Object System.Security.Principal.SecurityIdentifier $ ...
  •             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation : (:) [New-Object], MethodException
    • FullyQualifiedErrorId : ConstructorInvokedThrowException,Microsoft.PowerShell.Commands.NewObjectCommand

I hope this will help.

Thanks

from set-outlooksignatures.

GruberMarkus avatar GruberMarkus commented on May 28, 2024

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.

from set-outlooksignatures.

AnotherFranck avatar AnotherFranck commented on May 28, 2024

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

from set-outlooksignatures.

AnotherFranck avatar AnotherFranck commented on May 28, 2024

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

from set-outlooksignatures.

GruberMarkus avatar GruberMarkus commented on May 28, 2024

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?

from set-outlooksignatures.

AnotherFranck avatar AnotherFranck commented on May 28, 2024

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.

from set-outlooksignatures.

GruberMarkus avatar GruberMarkus commented on May 28, 2024

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.

from set-outlooksignatures.

AnotherFranck avatar AnotherFranck commented on May 28, 2024

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

from set-outlooksignatures.

GruberMarkus avatar GruberMarkus commented on May 28, 2024

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.

from set-outlooksignatures.

AnotherFranck avatar AnotherFranck commented on May 28, 2024

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!

from set-outlooksignatures.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.