Forum Discussion
KenStewart
Aug 01, 2019Brass Contributor
Connect-PnPOnline -UseWebLogin fails, login window disappears
I downloaded the latest version of PnP PowerShell today but have had no success with Connect-PnPOnline (no problem using Connect-SPOService). I get the dreaded error "For security reasons DTD is proh...
- DeletedAug 02, 2019Have you tried amending your hosts file?
Deleted
Aug 02, 2019Have you tried amending your hosts file?
cjvandyk
Jul 10, 2024Copper Contributor
What is being described here where the -UseWebLogin option is used and the screen pops up for a quick flash and then disappears leaving you connected, all sounds suspiciously like you may have Integrated Windows Authentication in the mix. If IWA is configured, it'll jump in and auth for you hence the window closing quickly.
https://learn.microsoft.com/en-us/aspnet/web-api/overview/security/integrated-windows-authentication