Find Who Created a List or Library in SharePoint using PowerShell

If you want to find out who has created a SharePoint site, list, or library: Sorry! There is no way from the SharePoint user interface!! You can’t get “Created By” or “Created On” values anywhere. 

But PowerShell is our rescuer! Let’s find who has created a SharePoint list using PowerShell:

Find Who has Created a List or Library using PowerShell

To see who created a list in SharePoint, use this PowerShell script:

Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue

#Get the List and Web
$web = Get-SPWeb "https://portal.crescent.com/sites/Sales"
$list = $web.lists["Sales Docs"]

#Get Creator and Created date of the given List
Write-host "List Created by:"$List.Author
Write-host "List Created on:"$List.Created

PowerShell to Find Who Created a File in SharePoint:

Here is how to use PowerShell to find who created a file in SharePoint:

Add-PSSnapin Microsoft.SharePoint.Powershell -ErrorAction SilentlyContinue

#variables
$SiteURL = "https://intranet.crescent.com/Sales"
$FileURL = "/sales/Shared%20Documents/Compliance%20Process.xlsx" #Relative URL

#Get the Web & File
$Web = Get-SPWeb -Identity $SiteURL
$File = $Web.GetFile($FileURL)

If($File.Exists)
{
    Write-Host "Created By: " $File.Author
    Write-Host "Modified On: " $File.TimeLastModified
    Write-Host "Modified By: " $File.ModifiedBy
    Write-Host "Created On: " $File.TimeCreated
}
else
{
    Write-Host "File doesn't exist!"
}

Related post: Determine who created a list view in SharePoint

Salaudeen Rajack

Salaudeen Rajack - SharePoint Expert with Two decades of SharePoint Experience. Love to Share my knowledge and experience with the SharePoint community, through real-time articles!

Leave a Reply

Your email address will not be published. Required fields are marked *