I want to use Pnp-PowerShell to access my company's Online SharePoint. But with the logon to my company's Online Sharepoint it only asks for a userid and not a password.

How can i write this in Powershell code. To just logon with a userid and not a password?

Greetings,

P

up vote 0 down vote accepted

I think you can store your credentials in Windows Credential manager and use below command to connect SharePoint online.

Connect-PnPOnline -Url https://yourtenant.sharepoint.com

below are some of Useful links by which you can connect to SharePoint Online with your credential Manager.

https://github.com/SharePoint/PnP-PowerShell/wiki/How-to-use-the-Windows-Credential-Manager-to-ease-authentication-with-PnP-PowerShell

https://www.petri.com/managing-usernames-passwords-powershell-sharepoint-online

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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