zettelkasten/OneNoteExport/Kommunikationstechnologie/Sharepoint/HOWTo's/51_Script create Site Collection.md
Ralf Koop 5a108aa2b4 .
2023-08-25 23:29:11 +02:00

833 B

Script create Site Collection

Dienstag, 30. Juli 2019

13:42

 

Inhalt noch aus dem aktuellen Script holen.

 

SPP

 

 

 

 

 

dann noch ergänzen

 

 

#Disable modern Lists and libraies at the Site Collection Level

$site = Get-SPSite https..................

$featureguid = new-object System.Guid "E3540C7D-6BEA-403C-A224-1A12EAFEE4C4"

$site.Features.Add($featureguid, $true)

 

 

#Enable Server Publishing :

$FeatureName = "PublishingSite"

$SiteURL="https://kerbmobilnet.bkk-mobiloil.de/sites/org"

Enable-SPFeature -Identity $FeatureName -url $siteURL -Confirm:$False

 

#Enable DocumentID

Enable-SPFeature -Identity docid -url $SiteURL -Confirm:$False

 

 

$FeatureNameweb = "PublishingWeb"

Enable-SPFeature -Identity $FeatureNameweb -url $SiteURL -Confirm:$False