使用stsadm.exe命令行删除,创建站点

在SharePoint中,如何做到创建站点集后,在第一次进入站点的时候选择站点模板?答案是用命令行进行创建,不需要指定站点模板。

备份站点:stsadm.exe –o backup –url <site url> -filename <storage path.dat> -nositelock

删除站点:stsadm.exe –o deletesite –url <site url>

创建站点:stsadm.exe -o createsite -url <host auth/pub url> -owneremail <someone@xyz.com>  -ownerlogin <domain\system user> -hostheaderwebapplicationurl <root web app url>

还原站点:stsadm.exe -o restore -url < auth aite url> -filename <xyz.dat> -hostheaderwebapplicationurl <root web app url> -overwrite

注意:-hostheaderwebapplicationurl 可简写为 -hhurl

 

 

原文地址:https://www.cnblogs.com/dexter2003/p/2181574.html