Hi @sns ,
You could refer this PowerShell command template:
Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue
$WebAppURL="http://sp13"
$CSVFile="C:\SitesList.csv"
Get-SPWebApplication $WebAppURL | Get-SPSite -Limit All | ForEach-Object {
if ($_.ReadOnly -eq $false -and $_.ReadLocked -eq $false -and $_.WriteLocked -eq $false){
New-Object -TypeName PSObject -Property @{
SiteName = $_.RootWeb.Title
Url = $_.Url}}
} | Export-CSV $CSVFile -NoTypeInformation
Should you have any questions or concerns, please do feel free to contact me.
Yours faithfully,
Renjie Sun
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.