PowerShell / PowerShell

PowerShell for every system!
https://microsoft.com/PowerShell
MIT License
44.48k stars 7.18k forks source link

Issue when combining forms with MFA #20124

Open kirstentalfoster opened 1 year ago

kirstentalfoster commented 1 year ago

Prerequisites

Steps to reproduce

When creating a form and then registering an SPMT migration, Powershell freezes completely rather than prompting for credentials. This happens across multiple systems and environments.

Example of commands to replicate:

Add-Type -AssemblyName System.Windows.Forms
$form = New-Object system.Windows.Forms.Form
register-spmtmigration -migratewithoutrootfolder -force

Expected behavior

Prompt for MFA to appear

Actual behavior

Powershell freezes indefinitely

Error details

No error is returned

Environment data

PSVersion                      5.1.17763.4720 
PSEdition                      Desktop 
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...} 
BuildVersion                   10.0.17763.4720 
CLRVersion                     4.0.30319.42000 
WSManStackVersion              3.0 
PSRemotingProtocolVersion      2.3 
SerializationVersion           1.1.0.1

Module Information:
Microsoft.Online.Sharepoint.Powershell     16.0.23914.12000

Visuals

Picture1

mklement0 commented 1 year ago

Please note that this repository is not for reporting Windows PowerShell issues (PowerShell versions up to 5.1); to report Windows PowerShell issues, use the Feedback Hub application, though note that Windows PowerShell is no longer actively developed and will see security-critical fixes only.