anyone knows a solution for Connect-SPOService on SharePoint Online PowerShell.
So I need to use Set-SPOSite and before I can use that I need to do Connect-SPOService first.
PS C:\WINDOWS\system32> Connect-SPOService >> cmdlet Connect-SPOService at command pipeline position 1 Supply values for the following parameters: Url: https://test.sharepoint.com/sites/test/ Connect-SPOService : Could not authenticate to SharePoint Online https://test.sharepoint.com/sites/test/ using OAuth 2.0 At line:1 char:1 + Connect-SPOService + ~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Connect-SPOService], AuthenticationException + FullyQualifiedErrorId : Microsoft.Online.SharePoint.PowerShell.AuthenticationException,Microsoft.Online.SharePoi nt.PowerShell.ConnectSPOService
The URL is not real, I login normally and did my 2FA with SMS but when I submit my 2FA it always fail. I tried it like 5 times just to be sure I was not putting the wrong code. I also tried using my App Password but it won't let me login with it.
Any known solution for this? My end goal is to edit my site to allow pages to be editted using SharePoint Designer. Would be a lot faster on editting ItemStyles for CQWP later
Set-SPOSite -Identity https://test.sharepoint.com/sites/test/ -DenyAddAndCustomizePages 0