param
(
[string]$siteURL,
[string]$owner,
[string]$secondOwner,
[string]$template,
[string]$title,
[string]$description
)
try
{
New-SPSite $siteURL -OwnerAlias $owner -SecondaryOwnerAlias $secondOwner -name $title -Template $template -Description $description -ErrorAction Stop
}
(
[string]$siteURL,
[string]$owner,
[string]$secondOwner,
[string]$template,
[string]$title,
[string]$description
)
try
{
New-SPSite $siteURL -OwnerAlias $owner -SecondaryOwnerAlias $secondOwner -name $title -Template $template -Description $description -ErrorAction Stop
}
No comments:
Post a Comment