zettelkasten/OneNoteExport/Kommunikationstechnologie/Sharepoint/Alt Installationen/08_Server neu machen.md
Ralf Koop 5a108aa2b4 .
2023-08-25 23:29:11 +02:00

3.9 KiB

Server neu machen

Dienstag, 12. Juni 2018

17:57

 

Powershell im Virtual Maschine Manager starten :

 

Falls dort eine Fehlermeldung beim Start kommt.

 

Folgenden Regestriekey prüfen:

 

HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Microsoft System Center Virtual Machine Manager Administrator Console\\Settings

"IndigoTcpPort"=dword:00001fa4

  

Wenn IndigoTcpPort bereits vorhanden ist (anderer Typ (Zeichenfolge)) den bitte erst löschen

 

  1. VM's -> "Ausschalten"

 

Powershell im Virtual Maschine Manager starten :

 

Get-SCVirtualMachine -name BKKSPTAPP001 | Set-SCVirtualMachine -FirstBootDevice "File,bootmgfw.efi"

 

Get-SCVirtualMachine -name BKKSPTAPP001 | Set-SCVirtualMachine -FirstBootDevice "NIC,0"

 

Get-SCVirtualMachine -name BKKSPTWEB001 | Set-SCVirtualMachine -FirstBootDevice "File,bootmgfw.efi"

 

Get-SCVirtualMachine -name BKKSPTWEB001 | Set-SCVirtualMachine -FirstBootDevice "NIC,0"

 

Dann die VM's starten,.dadurch werden sie komplett neu installiert.

Die Platten bleiben aber angehängt, sprich die Konfiguration bleibt erhalten.

 

  1. [Datenbank löschen!]{.underline} Befehle siehe rechts, BKKMAN003

 

  1. [in der Powershell auf dem Server BKKSPTAPP001:]{.underline}

 

set-executionPolicy unrestricted

 

  1. Dann das Script ausführen :

 

\\bkkfiler01\sharepoint$\Konfig-spt.ps1

 

oder

 

\\bkkfiler01\Daten\IT-Service\CMDB\SW\MS-SHAREPOINT-SERVER\Konfiguration\test\Konfig-spt.ps1

 

  1. Nach einem Neustart die Proxy Einstellungen setzen, damit Internet Zugang gewährleitet:

 

Anmeldung mit "_sptadmin" !

 

  1. \\bkkfiler01\Daten\IT-Service\CMDB\SW\MS-SHAREPOINT-SERVER\Konfiguration\test\set-bkkproxy.ps1

 

Auf weiteren SharePoint Servern bei einer Remote Installation muss dies auch ausgeführt werden (Internet Access):

\\bkkfiler01\Daten\IT-Service\CMDB\SW\MS-SHAREPOINT-SERVER\Konfiguration\test\set-bkkproxy.ps1

Get-SCVirtualMachine -name BKKSPsqlt001 | Set-SCVirtualMachine -FirstBootDevice "Nic,0"

 

Löschen der Datenbanken :

 

DROP DATABASE SPT_Config;

DROP DATABASE SPT_Content_CentralAdmin;

DROP DATABASE SPT_Content_MySites;

DROP DATABASE SPT_Content_Portal;

DROP DATABASE SPT_MetaData;

DROP DATABASE SPT_Search;

DROP DATABASE SPT_StateService;

DROP DATABASE SPT_MySiteBKK

DROP DATABASE SPT_Profile

DROP DATABASE SPT_Profile_Service

DROP DATABASE SPT_Profile_Sync

DROP DATABASE SPT_SearchCont

DROP DATABASE SPT_SearchServiceApplication

DROP DATABASE SPT_SearchServiceApplication_AnalyticsReportingStore

DROP DATABASE SPT_SearchServiceApplication_CrawlStore

DROP DATABASE SPT_SearchServiceApplication_LinksStore

DROP DATABASE SPT_SecureStore

DROP DATABASE SPT_StateService

DROP DATABASE SPT_UsageAndHealth

DROP DATABASE SPT_PerformancePoint;

DROP DATABASE SPT_SubscriptionSettings;

DROP DATABASE SPT_TranslationService;

DROP DATABASE SPT_WordAutomation;

 

Preinstallationtask :

 

Prüfen ob im Certstore die Zertifikate vorhanden sind.

im IIS auf beiden Servern das richtige Zertifikat zuweisen.

Umstellen der CentralAdmin Seite auf HTTPS Port 2016

 

Language Pack installieren. inkl updates (STS Datei)

 

MySite Provisionieren

Warmupscript auf dem Web Server aktivieren

 

SELECT ' DROP DATABASE [' + NAME + ']' FROM sys.sysdatabases where name like 'PREFIX%'

 

$group = [ADSI]("WinNT://"+$env:COMPUTERNAME+"/administrators,group")

$group.add("WinNT://$env:USERDOMAIN/_sptadmin,user")