Giter Club home page Giter Club logo

Comments (4)

GruberMarkus avatar GruberMarkus commented on September 23, 2024

Please provide the full text output when run with the -verbose parameter.

from set-outlooksignatures.

stipman avatar stipman commented on September 23, 2024

Script seems to hang for 5 minutes before completing
I have included the verbose log
VerboseOutput.txt

from set-outlooksignatures.

GruberMarkus avatar GruberMarkus commented on September 23, 2024

The issue happens in the following part of the verbose output:

  Set up environment for connection to Outlook Web @2024-05-02T16:31:02-04:00@
VERBOSE: Loading module from path 'C:\Users\MyUser\AppData\Local\Temp\f8974761-7afe-4f4f-bb38-0115c67d8844.dll'.
  Connect to Outlook Web
VERBOSE:     Try Integrated Windows Authentication
VERBOSE:       EXO access token available, skip Integrated Windows Authentication
VERBOSE:     Try OAuth with Autodiscover
VERBOSE: Exception calling "AutodiscoverUrl" with "2" argument(s): "The Autodiscover service couldn't be located."
VERBOSE:     Try OAuth with fixed URL
  Set classic Outlook Web signature @2024-05-02T16:34:23-04:00@

Set-OutlookSignatures tries to connect to Outlook Web up to three times:

  1. Using Integrated Windows Authentication with Autodiscover. This is skipped when a Graph token with Exchange Online rights is available.
  2. OAuth with Autodiscover, using the logged-in users mail address configured in Outlook ('[email protected]' in your log). This means that the Autodiscover URL is defined dynamically (which is what should work anyway).
  3. OAuth with Autodiscover, but using a fixed URL for the different M365 clouds (public, China, US Government, US Government DoD)

In your case, step 1 is skipped because an OAuth access token is already available, so things are faster when directly using this token for authentication.

Step 2 runs into a non-interruptable timeout because autodiscover for '[email protected]' does not work. The configuration issue is very like in your on-prem enviroment or in a part of the public infrastructure you control:

  • Internal DNS domain 'MyCompany.com' and its parent domains
  • Internal Exchange servers (if you still have some)
  • Load balancers, firewalls, ...
  • External DNS domain 'MyCompany.com' and its parent domains

Why am I sure that the problem is not within Set-OutlookSignatures? Because step 3 works fine and does not throw an error. Step 3 is exactly the same as step 2, but does not use Autodiscover to find the endpoint for authentication, but uses a fixed one.

Why is step 2 used anyhow, when step 3 always works? Autodiscover is an essential service for Exchange, so it should be configured correctly. Using a fixed URL is not guaranteed to work and should only be the last resort.

The next release of Set-OutlookSignatures, which is already in the final stages of testing, will contain a hint in standard output.

When you begin analyzing the problem, you will very like use Outlook's Test Email AutoConfiguration internally and Microsoft's Remote Connectitivy Analyzer externally, and at least one of these tools will show you the same error.

You probably see the problem in Outlook only when running it for the first time, because Outlook not only uses a fallback like Set-OutlookSignatures, but also a Last Known Good cache for Autodiscover.

Should you seek external help for solving this topic, ExplicIT Consulting, which I am associated with, might be an option for you.

As this is not a problem within Set-OutlookSignatures or it's components, I would like to close this issue.
Please let me know if your questions have been answered and if you agree to close this issue.

from set-outlooksignatures.

GruberMarkus avatar GruberMarkus commented on September 23, 2024

Closing issue due to inactivity. @stipman: Should you see something regarding this issue that I did answer, you can re-open this issue.

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.