zettelkasten/OneNoteExport/Kommunikationstechnologie/Sharepoint/Infrastruktur/53_SPBestWarmUp Script.md
Ralf Koop 5a108aa2b4 .
2023-08-25 23:29:11 +02:00

6.7 KiB

SPBestWarmUp Script

Montag, 22. Oktober 2018

14:26

 

Das Best Warm Up Script wurde auf den Servern

BKKSPQAPP001

BKKSPQAPP002

BKKSPQWEB001

BKKSPQWEB002

eingerichtet:

 

Hier die XML für den Import:

<?xml version="1.0" encoding="UTF-16"?>

<Task version="1.4" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">

<RegistrationInfo>

<Date>2018-09-21T08:01:06.817206</Date>

<Author>BKK-MOBILOIL\admin-rko</Author>

<URI>\SPBestWarmUp</URI>

</RegistrationInfo>

<Triggers>

<CalendarTrigger>

<StartBoundary>2017-01-25T06:00:00</StartBoundary>

<ExecutionTimeLimit>PT1H</ExecutionTimeLimit>

<Enabled>true</Enabled>

<ScheduleByDay>

<DaysInterval>1</DaysInterval>

</ScheduleByDay>

</CalendarTrigger>

<EventTrigger>

<Enabled>false</Enabled>

<Subscription><QueryList><Query Id="0" Path="System"><Select Path="System">*[System[Provider[@Name='Microsoft-Windows-WAS'] and EventID=5186]]</Select></Query></QueryList></Subscription>

<Delay>PT1M</Delay>

</EventTrigger>

<BootTrigger>

<Enabled>true</Enabled>

<Delay>PT5M</Delay>

</BootTrigger>

</Triggers>

<Principals>

<Principal id="Author">

<UserId>S-1-5-21-1051082516-1751074191-926709054-34681</UserId>

<LogonType>Password</LogonType>

<RunLevel>HighestAvailable</RunLevel>

</Principal>

</Principals>

<Settings>

<MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy>

<DisallowStartIfOnBatteries>true</DisallowStartIfOnBatteries>

<StopIfGoingOnBatteries>false</StopIfGoingOnBatteries>

<AllowHardTerminate>true</AllowHardTerminate>

<StartWhenAvailable>false</StartWhenAvailable>

<RunOnlyIfNetworkAvailable>false</RunOnlyIfNetworkAvailable>

<IdleSettings>

<StopOnIdleEnd>true</StopOnIdleEnd>

<RestartOnIdle>false</RestartOnIdle>

</IdleSettings>

<AllowStartOnDemand>true</AllowStartOnDemand>

<Enabled>true</Enabled>

<Hidden>false</Hidden>

<RunOnlyIfIdle>false</RunOnlyIfIdle>

<DisallowStartOnRemoteAppSession>false</DisallowStartOnRemoteAppSession>

<UseUnifiedSchedulingEngine>true</UseUnifiedSchedulingEngine>

<WakeToRun>false</WakeToRun>

<ExecutionTimeLimit>PT1H</ExecutionTimeLimit>

<Priority>7</Priority>

</Settings>

<Actions Context="Author">

<Exec>

<Command>PowerShell.exe</Command>

<Arguments>-ExecutionPolicy Bypass -File SPBestWarmUp.ps1 -skipadmincheck</Arguments>

<WorkingDirectory>D:\SP\02_Scripte\SpBestwarmUp</WorkingDirectory>

</Exec>

</Actions>

</Task>

 

 

 

Verzeichnis in dem die Scripte und XML Daten liegen:

D:\SP\02_Scripte\SpBestwarmUp

 

 

Computergenerierter Alternativtext: (9 SP8estWarrnlJp Properties (Local Computer) General Triggers Actions Conditions Settings Histcry SPBestWarmU p Location: BKK-MOBILOILXadmin-rkc Description: Security O When running the the ECCO-unt: O Run onlywhen \"5er is logged on @ Run whether logged on or not Change User cr Do not Store passwcrd. The task will only have access to Iccal computer resources. Run With highet privilege a Hidden Cancel {width="5.677083333333333in" height="4.59375in"}

 

Erfasster Bildschirmausschnitt: 21.09.2018 08:14

 

Computergenerierter Alternativtext: (9 SP8estWarrnlJp Properties (Local Computer) General Triggers Actions Conditions Settings Histcry When you create a task ycu can specify the conditions that will trigger the task. Oisabled Cancel Trigger Daily On an event At Startup At day On event - Log: System, Source: Microsoft-Windows-WAS, At System Startup {width="5.645833333333333in" height="4.572916666666667in"}

 

Erfasster Bildschirmausschnitt: 21.09.2018 08:15

 

User tsk-spq01 in die Gruppen

LogOnAsABatchJob

LogOnAsAService

aufnehmen.

 

Computergenerierter Alternativtext: SP8estWarrnlJp Properties (Local Computer) General Triggers Actcns Conditions Settings Histcry When you create a task you must specify the acticn that will occur when Your task stafts, Cancel {width="5.625in" height="4.552083333333333in"}

 

-ExecutionPolicy Bypass -File SPBestWarmUp.ps1 -skipadmincheck

D:\SP\02_Scripte\SpBestwarmUp

Erfasster Bildschirmausschnitt: 21.09.2018 08:15

 

Computergenerierter Alternativtext: (9 SP8estWarrnlJp Properties (Local Computer) General Triggers Actions Condtlons Settings Histcry Specify the conditicns that, \'Icng With the trigger, determine whether thetask should run. The tack will nct run if amy ccndition specified not true. Stad the if the computer iS idlefor Wait for idle fort Stop ifthe computer leases to be idle C)) Restan if the idle State resumes Start the tack only if the computer is on AC power Stop ff the Computer battey• power Wake the computerto run this task 10 \'l hOur Cancel Stan onty if the following network connection is available {width="5.614583333333333in" height="4.572916666666667in"}

 

Erfasster Bildschirmausschnitt: 21.09.2018 08:16

Computergenerierter Alternativtext: (9 SP8estWarrnlJp Properties (Local Computer) General Triggers Actions Conditions Settings Histcry Specfy additional settings that affect the behavior of the tack. Allowtaskto berun on demand Run task after a iS ff the fails. Every: to restat up to: Stop thetask if it Icnger than: lfthe runningtask dces not end when requested, fcrce itto stcp lI the tack not Scheduled again, delete it after: If the task is already running then the following rule applies Do not start a new instance minute time; 30 days Cancel {width="5.635416666666667in" height="4.572916666666667in"}

 

Erfasster Bildschirmausschnitt: 21.09.2018 08:17

 

 

Computergenerierter Alternativtext: (9 SP8estWarrnlJp Properties (Local Computer) General Triggers Acticns Conditions Settings History Number cf events: I Level Date \'Inf.„ 21092. Event\... Task Category 106 Task registered Operational Code Info Correlation Id Cancel Event TaskScheduIer Details \'tsk•spqOl\" registered Scheduler Log Name Microsoft-Windows-TaskSc heduler/ Ope rat iona I {width="5.625in" height="4.5625in"}

 

Erfasster Bildschirmausschnitt: 21.09.2018 08:17

 

Computergenerierter Alternativtext: Select Administrator: SharePoint 2016 Management Shell PS C: ÅLlsersqcfg-spqAümin) get-spshelladmin UserNane BKK-MOBIL01LXsvc-spqWebAppU bkk -mobiloi1Nsvc- spqSPDocKit PS C: WsersNcfg-spqAdmin) add-spshelladmin PS C: WsersNcfg- spqAdmin) get-spshelladmin UserNane BKK-\"0BIL01LXsvc-spqWebAppU bkk spqSPDocKit BKK-MOBIL01LNtsk-spqe1 PS C: WsersNcfg-spqAdmir» -username {width="6.791666666666667in" height="3.7395833333333335in"}

 

Erfasster Bildschirmausschnitt: 25.10.2018 13:49