Is there anyway to change the SharePoint site template after creating the SharePoint site using PowerShell?
I tried to use the below shell, but it's not worked!
Set-SPSite http://sp2019 -Template "STS#0"
I encountered the below error
Set-SPSite http://sp2019 -Teplate "STS#0"
set-SPSite : A site template has already been applied to this
site. Once a template has been applied, the site must be deleted
and recreated in order to apply a different template.
At line:1 char:1
+ set-SPSite http://sp2019 -Template "STS#0"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (Microsoft.Share...SPCm
dletSetSite:SPCmdletSetSite) [Set-SPSite], SPException
+ FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCm
dletSetSite