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

Tevon2.0 1,106 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.
2,422 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.
3,574 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,654 questions
0 comments No comments
{count} votes

Accepted answer
  1. Dimple Rane 921 Reputation points MVP
    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.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.