Error
New-SPWeb : Cannot convert 'System.Object[]' to the type
'Microsoft.SharePoint.PowerShell.SPWebTemplatePipeBind' required by parameter
'Template'. Specified method is not supported.
Command
Add-PSSnapin "Microsoft.SharePoint.PowerShell"
$webAppURL = "http://ift.tt/1D1bozn"
$deployTemplate = Get-SPWebTemplate | where {$_.Title -eq "CustomTempBlank1"}
$deployURL = $webAppURL + "salesInt"
$deployWeb = New-SPWeb -Url $deployURL -Template $deployTemplate -Name "salesInt"
$deployWeb.Update()
Its a new foundation server 2013

0 commentaires:
Enregistrer un commentaire