#Requires PS 7.X Install-Module PnP.PowerShell -Scope CurrentUser Register-PnPEntraIDAppForInteractiveLogin #(Be Patient took a while for permissions page to kick in) #Should get a popup website, close , wait for permissions popup , select all and accept. #When completed cli should post a message with the client ID to connect with and just add your SharePoint URL #Connect-PnPOnline -Url "https://ScriptsbyScott.sharepoint.com/sites/ScriptsbyScott.com" -ClientId 8fd1xxxxxxxxxxxxxxxxxxxxxxxxx8cedf1a1