Get SharePoint Online Site Collection Created Date using PnP PowerShell
Using PnP PowerShell script you can get the date when a SharePoint Online site has been created.
Please find the code below:
#Get your site URL in a variable
Please find the code below:
#Get your site URL in a variable
$SiteURL = "<Site URL>"
#Connect to that site by providing appropriate credential
Connect-PnPOnline -Url $SiteURL -Credentials (Get-Credential)
#Get the "Created" property from "Web" object
$Web = Get-PnPWeb -Includes Created
#Finally print that creation date on the PowerShell screen
Write-host "This site collection is created on: "$Web.Created
Happy Coding!!
#Connect to that site by providing appropriate credential
Connect-PnPOnline -Url $SiteURL -Credentials (Get-Credential)
#Get the "Created" property from "Web" object
$Web = Get-PnPWeb -Includes Created
#Finally print that creation date on the PowerShell screen
Write-host "This site collection is created on: "$Web.Created
Happy Coding!!
Codigo Maven
Comments
Post a Comment