User Parameter (Connect-SharePoint Cmdlet)
Specifies the Microsoft SharePoint user account used for authentication.
Syntax
Connect-SharePoint -User string
Data Type
cstr
Default Value
""
Remarks
The User property, together with the Password property, is used to authenticate with the Microsoft SharePoint server.
For Microsoft SharePoint On-Premise, the user name should include the domain, in the format: DOMAIN\Username
For Microsoft SharePoint Online, the user name typically follows this format: [email protected]
This is a required parameter.