question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Integrated Powershell Hangs on Get-Credential

See original GitHub issue

System Details

### VSCode version: 1.33.0 0dd516dd412d42323fc3464531b1c715d51c4c1a x64

### VSCode extensions:
DougFinke.vscode-PSStackoverflow@0.0.2
formulahendry.code-runner@0.9.8
ms-vscode.powershell@1.12.0


### PSES version: 1.12.0.0

### PowerShell version:

Name                           Value
----                           -----
PSVersion                      5.1.17763.316
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.17763.316
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

System Details Output


Issue Description

I am experiencing a problem when I am running my script, everytime I do a Get-Credential to login to Office365, it will hang on me. Now I want to say this was working before but for some reason it is not working now. I can copy parts of my script and put it in a new file and run it, and it will work. I have even tried just copying the text to a new file and saving it as something different, but still the issue persists.

Expected Behaviour

– In Powershell ISE, it will ask me for credentials in a Credentiaol GUI window, In VSCode it will only ask for them in the terminal, but both are successful and work, well VSCode is successful when its not in my entire script.

Actual Behaviour

– In VSCode it asks me for my password in the terminal, but wont let me type it in and just hangs.

Video_2019-04-10_133812

Attached Logs

EditorServices.log Start-EditorServices-EditorServices.log vscode-powershell.log

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
JustinGrotecommented, Feb 1, 2022

Have you tried the preview extension? Works fine there for me on both 7.2 and 5.1 image

0reactions
msftbot[bot]commented, Oct 18, 2022

This issue has been marked as fixed. It has been automatically closed for housekeeping purposes.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Get-Credential totally freezes up Powershell session..
I am struggling with an issue (intermittent) where the use of the get-credential command freezes up the session. It will ask for credentials ......
Read more >
Credential selection popup not appearing - Stack Overflow
I am starting to work with the PowerShell (PoSH) Cmdlet 'Get-Credential' because my company uses Two-factor Authentication (2FA), so a username/ ...
Read more >
Connect to SharePoint Online using PowerShell with MFA ...
PowerShell to Connect to SharePoint Online with MFA. Multi-Factor Authentication or ... + Connect-PnPOnline -Url $SiteURL -Credentials (Get-Credential)
Read more >
Get-Credential - PowerShell Command - PDQ
The Get-Credential cmdlet creates a credential object for a specified user name and password. You can use the credential object in security operations....
Read more >
Solve IntelliSense hangs in Integrated Scripting Environment
I am using the PowerShell Integrated Scripting Environment (ISE) however every command I type results in a 30 second delay that Intellisense is ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found