i was able to create an app-only sharepoint (version 2019 on premise) by following this guide https://docs.microsoft.com/en-us/sharepoint/dev/solution-guidance/security-apponly-azureacs .

I don't find any powershell command to connect to the site using the sharepoint app-only created.

I find only powershell command for sharepoint online.

Could you kindly help me? Best regards

1 Answer 1


if you have PowerShellGet installed, you can run the following commands to install the PowerShell cmdlets:

Install-Module SharePointPnPPowerShell2019

And use the pnp to connect

Connect-PnPOnline -Url https://contoso.sharepoint.com/sites/demo -ClientId [Your Client ID] -ClientSecret "[Your Client Secret]"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.