Comments (4)
Please provide the full text output when run with the -verbose parameter.
from set-outlooksignatures.
Script seems to hang for 5 minutes before completing
I have included the verbose log
VerboseOutput.txt
from set-outlooksignatures.
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:
- Using Integrated Windows Authentication with Autodiscover. This is skipped when a Graph token with Exchange Online rights is available.
- 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).
- 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.
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)
- User query LDAP successfully but still get a message about graph and tokens. HOT 4
- Trying to use New outlook but it try to connect to graph when it worked with Old Outlook HOT 2
- Graph Token Redirect to localhost failed HOT 5
- The remote procedure call failed HOT 3
- You create a .docx template but your variables don't populate HOT 6
- Problem with signature in Outlook Web (OWA) HOT 12
- Out-of-Office replies are not set when MailboxSpecificSignatureNames is enabled HOT 1
- Set-OutlookSignatures.ps1 unable to complete successfully for standard users (works perfectly for those with admin rights)
- Standard Users - Problem connecting to Microsoft Graph. Exit. HOT 13
- DOCX Template Font Size Problem HOT 4
- Error when attempting to reference templates/ ini files in SharePoint Online HOT 14
- Outlook Signatures not working in OWA HOT 7
- HTML template variables replacement not working HOT 4
- Get-Process : Es kann kein Prozess mit der Prozess-ID 2716 gefunden werden. HOT 7
- Word not installed or not working correctly. Exit. HOT 3
- Conversion to Base64 is slow, slowing embedding images and loading Graph config file HOT 1
- Script is getting "Currently logged-in user" wrong? HOT 3
- Possible issue with NewOutlook HOT 5
- Signature not being set for new messages or replies/forwards, and is not displayed under Email Account in Signatures and Stationery HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from set-outlooksignatures.