通过PowerShell从自定义模板创建Sharepoint子网站 [英] Create Sharepoint subsite from a custom template via PowerShell
问题描述
Hi there,
我正在尝试通过PowerShell通过自定义模板创建Sharepoint子网站.
我知道有很多关于它的文章,但是由于某种原因,我无法设法解决它……
I'm trying to create a Sharepoint subsite from a custom template via PowerShell.
I know there's a lots of articles about it, but for some reason I can't manage to work it out...
我正尝试在希伯来语的Sharepoint Foundation 2013上执行此操作.
以管理员身份打开PS.
I'm trying to do this on Sharepoint Foundation 2013 in Hebrew.
Opened PS as Admin.
这些命令运行正常.
$site = Get-SPSite http://myserver/sites/mysite
$web = New-SPWeb http://myserver/sites/mysite/subsite
但之后 "{EEE6AC05-CEB3-4C9C-B761-639470F51342} #Clientemplate"
我得到了:
另外,我通过一种变通方法获得了上面的模板ID,因为当我运行以下命令时,我什么也没得到...
Also, I got the template ID above via a workaround because when I'm running the following commands I get nothing...
1033
$site = Get-SPSite http://myserver/sites/mysite
$site.GetWebTemplates(1033)
我确定我会丢失一些东西,将不胜感激.
I'm sure that I'm missing something and would appreciate any help.
Thanks,
Ariel
推荐答案
FYI
这篇关于通过PowerShell从自定义模板创建Sharepoint子网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!