Guest User

Untitled

a guest
Feb 15th, 2019
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. Connect-PnPOnline -Url https://testdomain.sharepoint.com/sites/test1
  2. -PnPO365ManagementShell -LaunchBrowser
  3.  
  4. $username = "test@exemple.com"
  5. $password = "password"
  6.  
  7. $cred = New-Object -TypeName System.Management.Automation.PSCredential -argumentlist $userName, $(convertto-securestring $Password -asplaintext -force)
  8.  
  9. Connect-SPOService -Url https://testdomain-admin.sharepoint.com -Credential $cred
Add Comment
Please, Sign In to add comment