Cmdlets for Microsoft SharePoint

Build 25.0.9434

URL Parameter (Connect-SharePoint Cmdlet)

Specifies the base URL of the Microsoft SharePoint site to connect to. This URL is used as the starting point for all API calls.

Syntax

Connect-SharePoint -URL string

Data Type

cstr

Default Value

""

Remarks

The URL property defines the base endpoint of the Microsoft SharePoint site the cmdlet connects to. This includes fetching lists and libraries, performing CRUD operations on tables, and executing stored procedures, which are all relative to the site defined by the URL. Examples of valid values include:

  • http://server/SharePoint/
  • http://server/Sites/mysite/
  • http://server:90/
  • https://contoso.sharepoint.com/
  • https://contoso.sharepoint.com/sites/MySite/
  • https://contoso.sharepoint.com/SubSite/

Trailing slashes are optional. Ensure that the URL points to the root site or site collection that the cmdlet will use for queries and operations.

This is a required parameter.

Copyright (c) 2025 CData Software, Inc. - All rights reserved.
Build 25.0.9434