Guest User

Untitled

a guest
Jan 17th, 2019
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. $username = "my email-address"
  2. $password = "my password"
  3. $cred = New-Object -TypeName System.Management.Automation.PSCredential -argumentlist $userName, $(convertto-securestring $Password -asplaintext -force)
  4. Connect-SPOService -Url https://mydomain-admin.sharepoint.com -Credential $cred
Add Comment
Please, Sign In to add comment