What is the Item URL when exporting a document library via Powershell

Tevon2.0 671 Reputation points
2023-01-17T18:52:31.6133333+00:00

(SharePoint Server 2019)

Seeking to transfer a document library via SharePoint PowerShell. When using the command below, what would the Item URL be and where can I find it.

Export-SPWeb <Web-URL> -Path <Backup-Path> -ItemURL <Library-URL> -IncludeUserSecurity  -IncludeVersions All

SharePoint Server
SharePoint Server
A family of Microsoft on-premises document management and storage systems.
1,470 questions
SharePoint Server Development
SharePoint Server Development
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Development: The process of researching, productizing, and refining new or existing technologies.
1,352 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
1,698 questions
No comments
{count} votes

Accepted answer
  1. Dimple Rane 876 Reputation points
    2023-01-17T19:06:29.74+00:00

    The Item URL in the command you provided refers to the URL of the document library that you want to transfer. You can find the URL of a document library by navigating to it in the SharePoint site, and then copying the URL from the address bar of your web browser. The URL will typically be in the format of

    https://<your-site-name>.com/<document-library-name>
    
    

    For example, if you have a SharePoint site called "mycompany" and a document library called "Marketing Materials", the Item URL for that library would be "**https://mycompany.com/Marketing%20Materials**".

    You can also find the URL of the document library by using SharePoint PowerShell. You can use the command:

    Get-SPWeb <Web-URL> -Limit All | Select Title, Url
    

    It will show you the title and URL of all Lists/Libraries on the SharePoint web specified in <Web-URL>

    You can then use this URL in the Export-SPWeb command to transfer the document library to the specified backup path.

    No comments

0 additional answers

Sort by: Most helpful