1.7 KiB
Installation
Dienstag, 13. September 2016
08:59
Automatisiertes Hinzufügen eines Servers zu einer existierenden Farm
Connect-SPConfigurationDatabase --DatabaseName "SP_SharePoint_Config" --DatabaseServer "Servername" --Passphrase (ConvertTo-SecureString "Passwort" --AsPlaintext --Force)
Install-SPHelpCollection -All
Initialize-SPResourceSecurity
Install-SPService
Install-SPFeature -AllExistingFeatures
Install-SPApplicationContent
Automatisiertes Anlegen verwalteter Konten
Import-csv .\VerwalteteKonten.csv | foreach{
$acc = $_.Konto
$pw = ConvertTo-SecureString $_.Passwort -AsPlainText -Force
$cred = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList $acc,$pw
New-SPManagedAccount $cred
}
Erstellen einer Webanwendung mithilfe der PowerShell
$ManAcc = Get-SPManagedAccount sincdemo\svcsppportal
$AP = New-SPAuthenticationProvider
New-SPWebapplication -Name "SINC Intranet" -Port 80 -HostHeader "intranet.sincdemo.de" -Url "http://intranet.sincdemo.de" -ApplicationPool "Claims-Portal" -ApplicationPoolAccount ($ManAcc) -DatabaseName "SP_Intranet_ContentDB" --AuthenticationProvider $ap
Mit SSL Schutz
New-SPWebapplication -Name "SINC Intranet" -Port 443 -HostHeader "intranet.sinc.de" -Url "https://intranet.sincdemo.de" -ApplicationPool "Claims-Portal" -ApplicationPoolAccount ($ManAcc) -DatabaseName "SP_SINC-Intranet_ContentDB" -SecureSocketsLayer --AuthenticationProvider $ap
Erstellen der obersten Websitesammlung
TIPPNew-SPSite http://intranet.sincdemo.de -OwnerAlias "SINCDEMO\FarmAdmin" -Language 1031 -Template BLANINTERNET#0 -Name "Intranet-Portal"