I created PowerShell script that runs well in PowerShell-ISE. It autologin with credential popup and works as expected.
Problem: While same script I added to Task Scheduler then it prompts credential and wait until select the user, once user select manually then it works as expected. But I want autologin and execute without prompt credential.
Command: Connect-PnPOnline -Url "https://contoso.sharepoint.com" -UseWebLogin Note: Only -UseWebLogin option is applicable. Area: Office365, SharePoint Online