Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Microsoft Authenticator / Powershell Versions Greater than 7.3.4 #20003

Closed
5 tasks done
lgroves317 opened this issue Jul 20, 2023 · 10 comments
Closed
5 tasks done

Microsoft Authenticator / Powershell Versions Greater than 7.3.4 #20003

lgroves317 opened this issue Jul 20, 2023 · 10 comments
Labels
Issue-Question ideally support can be provided via other mechanisms, but sometimes folks do open an issue to get a Resolution-External The issue is caused by external component(s).

Comments

@lgroves317
Copy link

lgroves317 commented Jul 20, 2023

Prerequisites

Steps to reproduce

Our company uses Microsoft Authenticator to connect to Exchange Online.
This worked fine on PowerShell until 7.3.5 was released.
It is still not working in version 7.3.6.

After we enter the Authenticator code in Microsoft Edge, we get an error in Edge saying:
"The connection for this site is not secure."
Then the Connect-ExchangeOnline command hangs in the PowerShell console.

If we use PowerShell 7.3.4 or below, we get the message :
Authentication complete. You can return to the application. Feel free to close this browser tab.
Then we get connected successfully to Exchange Online.

Expected behavior

Get connected to ExchangeOnline

Actual behavior

Connect-ExchangeOnline command hangs in PowerShell console.

Error details

stack trace of separate Get-ChildItem issues Exception : Type : System.UnauthorizedAccessException TargetSite : Name : CreateDirectoryHandle DeclaringType : System.IO.Enumeration.FileSystemEnumerator`1[TResult] MemberType : Method Module : System.Private.CoreLib.dll Message : Access to the path 'C:\Users\john.doe\Templates' is denied. Source : System.Private.CoreLib HResult : -2147024891 StackTrace : at System.IO.Enumeration.FileSystemEnumerator`1.CreateDirectoryHandle(String path, Boolean ignoreNotFound) at System.IO.Enumeration.FileSystemEnumerator`1.Init() at System.IO.Enumeration.FileSystemEnumerableFactory.DirectoryInfos(String directory, String expression, EnumerationOptions options, Boolean isNormalized) at System.IO.DirectoryInfo.InternalEnumerateInfos(String path, String searchPattern, SearchTarget searchTarget, EnumerationOptions options) at System.IO.DirectoryInfo.EnumerateDirectories() at Microsoft.PowerShell.Commands.FileSystemProvider.Dir(DirectoryInfo directory, Boolean recurse, UInt32 depth, Boolean nameOnly, ReturnContainers returnContainers, InodeTracker tracker) TargetObject : C:\Users\john.doe\Templates CategoryInfo : PermissionDenied: (C:\Users\john.doe\Templates:String) [Get-ChildItem], UnauthorizedAccessException FullyQualifiedErrorId : DirUnauthorizedAccessError,Microsoft.PowerShell.Commands.GetChildItemCommand InvocationInfo : MyCommand : Get-ChildItem ScriptLineNumber : 1 OffsetInLine : 121 HistoryId : 8 Line : Get-ChildItem -force . -ErrorAction SilentlyContinue | ? { $_ -is [io.directoryinfo] } | ForEach { $numberOfFiles = 0 ; Get-ChildItem -recurse -force $_.fullname -ErrorAction SilentlyContinue | ? {$_ -is [io.fileinfo] } | % {$numberOfFiles += 1} ; $currentDirInfo = [pscustomobject]@{path = $_.fullname; numberOfFiles = $numberOfFiles} ; $currentDirInfo } | Sort-Object numberOfFiles -Descending PositionMessage : At line:1 char:121 + … Files = 0 ; Get-ChildItem -recurse -force $_.fullname -ErrorAction Si … + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ InvocationName : Get-ChildItem CommandOrigin : Internal ScriptStackTrace : at , : line 1 at , : line 1 PipelineIterationInfo :

Environment data

Name                           Value
----                           -----
PSVersion                      7.3.6
PSEdition                      Core
GitCommitId                    7.3.6
OS                             Microsoft Windows 10.0.22621
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Visuals

image

@lgroves317 lgroves317 added the Needs-Triage The issue is new and needs to be triaged by a work group. label Jul 20, 2023
@TravisEz13
Copy link
Member

I think this has to be related to one of the security updates released in 7.3.5. These were all .NET updates. One question is, did it break in 7.2.12 as well?

I'm trying to get MSAL/Exchange Online involved, but I would recommend you open a support case with Exchange Online.

@TravisEz13 TravisEz13 added Resolution-External The issue is caused by external component(s). Issue-Question ideally support can be provided via other mechanisms, but sometimes folks do open an issue to get a and removed Needs-Triage The issue is new and needs to be triaged by a work group. labels Jul 24, 2023
@lgroves317
Copy link
Author

lgroves317 commented Jul 24, 2023 via email

@microsoft-github-policy-service
Copy link
Contributor

This issue has been marked as external and has not had any activity for 1 day. It has been be closed for housekeeping purposes.

@TravisEz13
Copy link
Member

TravisEz13 commented Jul 27, 2023

I spoke to exchange online and they have asked that you open a support request: https://learn.microsoft.com/en-us/microsoft-365/admin/get-help-support?view=o365-worldwide

Learn how to get online or phone support for your Microsoft 365 for business subscription. You must be an admin for a business subscription to get support.

@ritikmit
Copy link

@lgroves317 Can you also elaborate on this point? -- "Our company uses Microsoft Authenticator to connect to Exchange Online."

@lgroves317
Copy link
Author

lgroves317 commented Jul 27, 2023 via email

@lgroves317
Copy link
Author

@lgroves317 Can you also elaborate on this point? -- "Our company uses Microsoft Authenticator to connect to Exchange Online."

We use two factor authentication to connect to M365 for all users. We just happen to use MS Authenticator. When one us needs to access Exchange Online, a browser is launched asking for the MS Authenticator code. Usually we would just type the code in and everything was copacetic.

After the update to PS 7.3.5, it just stopped working.

@JamesLear92
Copy link

Not sure why this was closed. I have exactly the same issue.
Is there a work around?

@lgroves317
Copy link
Author

I have a ticket open with Microsoft support. They said they would be getting back to me by tomorrow with next steps. I'll post their reply when I get it.

@lgroves317
Copy link
Author

I have a ticket open with Microsoft support. They said they would be getting back to me by tomorrow with next steps. I'll post their reply when I get it.

I just got off a call with MS Support. They had me send them more log files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Question ideally support can be provided via other mechanisms, but sometimes folks do open an issue to get a Resolution-External The issue is caused by external component(s).
Projects
None yet
Development

No branches or pull requests

5 participants