How to check when Sharepoint List was created using PowerShell.
While the SharePoint admin console may not offer a straightforward way to view the creation date of a SharePoint list, PowerShell comes to the rescue. In this blog post, we'll explore how you can effortlessly retrieve this information using SharePoint PowerShell.
Let's dive into the steps and make list creation dates a breeze to access in your SharePoint environment.
Install SharePoint module in your PS using following PS-CMD.
Install-Module -Name
Microsoft.Online.SharePoint.PowerShell
If you want to check version of SharePoint install module using
following CMD
Get-Module -Name
Microsoft.Online.SharePoint.PowerShell -ListAvailable | Select Name,Version
Now connect SharePoint Admin
center using following CMD in PowerShell.
Connect-SPOService -Url https://YourAdminWebAddress.sharepoint.com
If you don’t know address go to https://admin.microsoft.com/ Admin Centers
and open SharePoint admin center and copy URL.
Now connect your SharePoint site using following CMD where
you have all the list.
Connect-PnPOnline -Url
"https://yourtenant.sharepoint.com/sites/yoursite" -UseWebLogin
Note: -UseWebLogin will get you modern authentication.
# Get all lists in the current site
$lists = Get-PnPList
# Display list
information
foreach ($list in $lists) {
Write-Host "List Title:
$($list.Title), ID: $($list.Id), Created: $($list.Created)"
}
# Disconnect from SharePoint Online
Disconnect-PnPOnline
Comments
Post a Comment