SharePoint 2010: creating a site in a sitecollection automatically
-
06-02-2021 - |
Question
I am looking at ways of automating creation of sites in a site collection in SharePoint 2010. Actually, for some load/stress test, I need to create around 100 sites in a site collection. I can create a site from the SharePoint admin site. But I wish to create large number of them and possibly using some automation.
Please let me know possible ways.
La solution
stsadm.exe is no longer available for Sharepoint 2010
However you use cmdlets: New-SPSite
Like: New-spsite –url http://someWeb/sites/someSite -OwnerAlias domain\username -template STS#0
Autres conseils
stsadm.exe is still available in SharePoint 2010.
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow