### 友情提示:本脚本由 Au3.REHelper 于 2020/02/01 12:28 自动生成,不保证其正确性,请自行测试 ###
#include <Array.au3>
Local $sSource = _
'<!-- \Microsoft\Windows\Flighting\OneSettings\RefreshCache -->' & @CRLF & _
'<?xml version="1.0" encoding="UTF-16"?>' & @CRLF & @CRLF & _
'<Task version="1.6" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">' & @CRLF & @CRLF & _
' <RegistrationInfo>' & @CRLF & @CRLF & _
' <SecurityDescriptor>D:P(A;;FA;;;SY)(A;;FA;;;BA)(A;;FRFX;;;AU)</SecurityDescriptor>' & @CRLF & @CRLF & _
' <Source>$(@%systemroot%\system32\wosc.dll,-602)</Source>' & @CRLF & @CRLF & _
' <Author>$(@%systemroot%\system32\wosc.dll,-601)</Author>' & @CRLF & @CRLF & _
' <Description>$(@%systemroot%\system32\wosc.dll,-603)</Description>' & @CRLF & @CRLF & _
' <URI>\Microsoft\Windows\Flighting\OneSettings\RefreshCache</URI>' & @CRLF & @CRLF & _
' </RegistrationInfo>' & @CRLF & @CRLF & _
' <Principals>' & @CRLF & @CRLF & _
' <Principal id="LocalSystem">' & @CRLF & @CRLF & _
' <UserId>S-1-5-18</UserId>' & @CRLF & @CRLF & _
' </Principal>' & @CRLF & @CRLF & _
' </Principals>' & @CRLF & @CRLF & _
' <Settings>' & @CRLF & @CRLF & _
' <DisallowStartIfOnBatteries>false</DisallowStartIfOnBatteries>' & @CRLF & @CRLF & _
' <StopIfGoingOnBatteries>false</StopIfGoingOnBatteries>' & @CRLF & @CRLF & _
' <ExecutionTimeLimit>PT5M</ExecutionTimeLimit>' & @CRLF & @CRLF & _
' <MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy>' & @CRLF & @CRLF & _
' <RunOnlyIfNetworkAvailable>true</RunOnlyIfNetworkAvailable>' & @CRLF & @CRLF & _
' <IdleSettings>' & @CRLF & @CRLF & _
' <StopOnIdleEnd>false</StopOnIdleEnd>' & @CRLF & @CRLF & _
' <RestartOnIdle>false</RestartOnIdle>' & @CRLF & @CRLF & _
' </IdleSettings>' & @CRLF & @CRLF & _
' <UseUnifiedSchedulingEngine>true</UseUnifiedSchedulingEngine>' & @CRLF & @CRLF & _
' </Settings>' & @CRLF & @CRLF & _
' <Triggers>' & @CRLF & @CRLF & _
' <TimeTrigger>' & @CRLF & @CRLF & _
' <StartBoundary>2020-01-26T21:10:22+08:00</StartBoundary>' & @CRLF & @CRLF & _
' <Repetition>' & @CRLF & @CRLF & _
' <Interval>PT3H23M</Interval>' & @CRLF & @CRLF & _
' </Repetition>' & @CRLF & @CRLF & _
' <RandomDelay>PT1H</RandomDelay>' & @CRLF & @CRLF & _
' </TimeTrigger>' & @CRLF & @CRLF & _
' <WnfStateChangeTrigger>' & @CRLF & @CRLF & _
' <StateName>7538BCA33A019502</StateName>' & @CRLF & @CRLF & _
' </WnfStateChangeTrigger>' & @CRLF & @CRLF & _
' </Triggers>' & @CRLF & @CRLF & _
' <Actions Context="LocalSystem">' & @CRLF & @CRLF & _
' <ComHandler>' & @CRLF & @CRLF & _
' <ClassId>{E07647F7-AED2-48D9-9720-939BC24A8A3C}</ClassId>' & @CRLF & @CRLF & _
' </ComHandler>' & @CRLF & @CRLF & _
' </Actions>' & @CRLF & @CRLF & _
'</Task>' & @CRLF & @CRLF & @CRLF & @CRLF & _
'<!-- \Microsoft\Windows\HelloFace\FODCleanupTask -->' & @CRLF & _
'<?xml version="1.0" encoding="UTF-16"?>' & @CRLF & @CRLF & _
'<Task version="1.6" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">' & @CRLF & @CRLF & _
' <RegistrationInfo>' & @CRLF & @CRLF & _
' <SecurityDescriptor>D:P(A;;FA;;;BA)(A;;FA;;;SY)(A;;FA;;;NU)</SecurityDescriptor>' & @CRLF & @CRLF & _
' <URI>\Microsoft\Windows\HelloFace\FODCleanupTask</URI>' & @CRLF & @CRLF & _
' </RegistrationInfo>' & @CRLF & @CRLF & _
' <Principals>' & @CRLF & @CRLF & _
' <Principal id="System">' & @CRLF & @CRLF & _
' <UserId>S-1-5-18</UserId>' & @CRLF & @CRLF & _
' <RunLevel>HighestAvailable</RunLevel>' & @CRLF & @CRLF & _
' </Principal>' & @CRLF & @CRLF & _
' </Principals>' & @CRLF & @CRLF & _
' <Settings>' & @CRLF & @CRLF & _
' <DisallowStartIfOnBatteries>true</DisallowStartIfOnBatteries>' & @CRLF & @CRLF & _
' <StopIfGoingOnBatteries>false</StopIfGoingOnBatteries>' & @CRLF & @CRLF & _
' <ExecutionTimeLimit>PT15M</ExecutionTimeLimit>' & @CRLF & @CRLF & _
' <Hidden>true</Hidden>' & @CRLF & @CRLF & _
' <MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy>' & @CRLF & @CRLF & _
' <Priority>8</Priority>' & @CRLF & @CRLF & _
' <StartWhenAvailable>true</StartWhenAvailable>' & @CRLF & @CRLF & _
' <RunOnlyIfIdle>true</RunOnlyIfIdle>' & @CRLF & @CRLF & _
' <IdleSettings>' & @CRLF & @CRLF & _
' <Duration>PT5M</Duration>' & @CRLF & @CRLF & _
' <WaitTimeout>PT2H</WaitTimeout>' & @CRLF & @CRLF & _
' <StopOnIdleEnd>false</StopOnIdleEnd>' & @CRLF & @CRLF & _
' <RestartOnIdle>false</RestartOnIdle>' & @CRLF & @CRLF & _
' </IdleSettings>' & @CRLF & @CRLF & _
' <UseUnifiedSchedulingEngine>true</UseUnifiedSchedulingEngine>' & @CRLF & @CRLF & _
' <MaintenanceSettings>' & @CRLF & @CRLF & _
' <Period>P7D</Period>' & @CRLF & @CRLF & _
' <Deadline>P30D</Deadline>' & @CRLF & @CRLF & _
' </MaintenanceSettings>' & @CRLF & @CRLF & _
' </Settings>' & @CRLF & @CRLF & _
' <Triggers>' & @CRLF & @CRLF & _
' <RegistrationTrigger />' & @CRLF & @CRLF & _
' </Triggers>' & @CRLF & @CRLF & _
' <Actions Context="System">' & @CRLF & @CRLF & _
' <Exec>' & @CRLF & @CRLF & _
' <Command>%WinDir%\System32\WinBioPlugIns\FaceFodUninstaller.exe</Command>' & @CRLF & @CRLF & _
' </Exec>' & @CRLF & @CRLF & _
' </Actions>' & @CRLF & @CRLF & _
'</Task>' & @CRLF & @CRLF & @CRLF & @CRLF & _
'<!-- \Microsoft\Windows\PushToInstall\Registration -->' & @CRLF & _
'<?xml version="1.0" encoding="UTF-16"?>' & @CRLF & @CRLF & _
'<Task version="1.6" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">' & @CRLF & @CRLF & _
' <RegistrationInfo>' & @CRLF & @CRLF & _
' <Version>1.0</Version>' & @CRLF & @CRLF & _
' <SecurityDescriptor>D:P(A;;FA;;;SY)(A;;FA;;;BA)(A;;GRGX;;;SU)</SecurityDescriptor>' & @CRLF & @CRLF & _
' <URI>\Microsoft\Windows\PushToInstall\Registration</URI>' & @CRLF & @CRLF & _
' </RegistrationInfo>' & @CRLF & @CRLF & _
' <Principals>' & @CRLF & @CRLF & _
' <Principal id="LocalSystem">' & @CRLF & @CRLF & _
' <UserId>S-1-5-18</UserId>' & @CRLF & @CRLF & _
' <RunLevel>HighestAvailable</RunLevel>' & @CRLF & @CRLF & _
' </Principal>' & @CRLF & @CRLF & _
' </Principals>' & @CRLF & @CRLF & _
' <Settings>' & @CRLF & @CRLF & _
' <DisallowStartIfOnBatteries>false</DisallowStartIfOnBatteries>' & @CRLF & @CRLF & _
' <StopIfGoingOnBatteries>false</StopIfGoingOnBatteries>' & @CRLF & @CRLF & _
' <ExecutionTimeLimit>PT1H</ExecutionTimeLimit>' & @CRLF & @CRLF & _
' <MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy>' & @CRLF & @CRLF & _
' <StartWhenAvailable>true</StartWhenAvailable>' & @CRLF & @CRLF & _
' <RunOnlyIfNetworkAvailable>true</RunOnlyIfNetworkAvailable>' & @CRLF & @CRLF & _
' <IdleSettings>' & @CRLF & @CRLF & _
' <StopOnIdleEnd>true</StopOnIdleEnd>' & @CRLF & @CRLF & _
' <RestartOnIdle>false</RestartOnIdle>' & @CRLF & @CRLF & _
' </IdleSettings>' & @CRLF & @CRLF & _
' <DisallowStartOnRemoteAppSession>true</DisallowStartOnRemoteAppSession>' & @CRLF & @CRLF & _
' <UseUnifiedSchedulingEngine>true</UseUnifiedSchedulingEngine>' & @CRLF & @CRLF & _
' </Settings>' & @CRLF & @CRLF & _
' <Triggers>' & @CRLF & @CRLF & _
' <TimeTrigger>' & @CRLF & @CRLF & _
' <StartBoundary>2020-01-25T07:03:40</StartBoundary>' & @CRLF & @CRLF & _
' <Repetition>' & @CRLF & @CRLF & _
' <Interval>P20D</Interval>' & @CRLF & @CRLF & _
' </Repetition>' & @CRLF & @CRLF & _
' </TimeTrigger>' & @CRLF & @CRLF & _
' <WnfStateChangeTrigger>' & @CRLF & @CRLF & _
' <Delay>PT15M</Delay>' & @CRLF & @CRLF & _
' <StateName>750CBCA3290B9641</StateName>' & @CRLF & @CRLF & _
' <Data>01</Data>' & @CRLF & @CRLF & _
' </WnfStateChangeTrigger>' & @CRLF & @CRLF & _
' </Triggers>' & @CRLF & @CRLF & _
' <Actions Context="LocalSystem">' & @CRLF & @CRLF & _
' <Exec>' & @CRLF & @CRLF & _
' <Command>%windir%\system32\sc.exe</Command>' & @CRLF & @CRLF & _
' <Arguments>start pushtoinstall registration</Arguments>' & @CRLF & @CRLF & _
' </Exec>' & @CRLF & @CRLF & _
' </Actions>' & @CRLF & @CRLF & _
'</Task>' & @CRLF & @CRLF & _
'<!-- \Microsoft\Windows\InstallService\ScanForUpdates -->' & @CRLF & _
'<?xml version="1.0" encoding="UTF-16"?>' & @CRLF & @CRLF & _
'<Task version="1.6" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">' & @CRLF & @CRLF & _
' <RegistrationInfo>' & @CRLF & @CRLF & _
' <SecurityDescriptor>D:(A;;FA;;;SY)(A;;FRFX;;;BA)</SecurityDescriptor>' & @CRLF & @CRLF & _
' <URI>\Microsoft\Windows\InstallService\ScanForUpdates</URI>' & @CRLF & @CRLF & _
' </RegistrationInfo>' & @CRLF & @CRLF & _
' <Principals>' & @CRLF & @CRLF & _
' <Principal id="LocalSystem">' & @CRLF & @CRLF & _
' <UserId>S-1-5-18</UserId>' & @CRLF & @CRLF & _
' </Principal>' & @CRLF & @CRLF & _
' </Principals>' & @CRLF & @CRLF & _
' <Settings>' & @CRLF & @CRLF & _
' <DisallowStartIfOnBatteries>false</DisallowStartIfOnBatteries>' & @CRLF & @CRLF & _
' <StopIfGoingOnBatteries>false</StopIfGoingOnBatteries>' & @CRLF & @CRLF & _
' <ExecutionTimeLimit>PT4H</ExecutionTimeLimit>' & @CRLF & @CRLF & _
' <MultipleInstancesPolicy>Queue</MultipleInstancesPolicy>' & @CRLF & @CRLF & _
' <StartWhenAvailable>true</StartWhenAvailable>' & @CRLF & @CRLF & _
' <RunOnlyIfNetworkAvailable>true</RunOnlyIfNetworkAvailable>' & @CRLF & @CRLF & _
' <IdleSettings>' & @CRLF & @CRLF & _
' <StopOnIdleEnd>true</StopOnIdleEnd>' & @CRLF & @CRLF & _
' <RestartOnIdle>false</RestartOnIdle>' & @CRLF & @CRLF & _
' </IdleSettings>' & @CRLF & @CRLF & _
' <UseUnifiedSchedulingEngine>true</UseUnifiedSchedulingEngine>' & @CRLF & @CRLF & _
' </Settings>' & @CRLF & @CRLF & _
' <Triggers>' & @CRLF & @CRLF & _
' <TimeTrigger>' & @CRLF & @CRLF & _
' <StartBoundary>2014-01-01T08:00:00+08:00</StartBoundary>' & @CRLF & @CRLF & _
' <Repetition>' & @CRLF & @CRLF & _
' <Interval>P1D</Interval>' & @CRLF & @CRLF & _
' </Repetition>' & @CRLF & @CRLF & _
' <RandomDelay>P1D</RandomDelay>' & @CRLF & @CRLF & _
' </TimeTrigger>' & @CRLF & @CRLF & _
' <WnfStateChangeTrigger id="7524BCA33E06830D">' & @CRLF & @CRLF & _
' <Delay>PT15M</Delay>' & @CRLF & @CRLF & _
' <StateName>7524BCA33E06830D</StateName>' & @CRLF & @CRLF & _
' </WnfStateChangeTrigger>' & @CRLF & @CRLF & _
' <TimeTrigger id="ServerRecommendedScheduledRetry">' & @CRLF & @CRLF & _
' <StartBoundary>2014-01-01T08:00:00+08:00</StartBoundary>' & @CRLF & @CRLF & _
' <Enabled>false</Enabled>' & @CRLF & @CRLF & _
' </TimeTrigger>' & @CRLF & @CRLF & _
' </Triggers>' & @CRLF & @CRLF & _
' <Actions Context="LocalSystem">' & @CRLF & @CRLF & _
' <ComHandler>' & @CRLF & @CRLF & _
' <ClassId>{A558C6A5-B42B-4C98-B610-BF9559143139}</ClassId>' & @CRLF & @CRLF & _
' </ComHandler>' & @CRLF & @CRLF & _
' </Actions>' & @CRLF & @CRLF & _
'</Task>'
;~MsgBox(0, '源字符串', $sSource)
Local $aSRE = StringRegExp($sSource, '20\d{2}-\d{2}-\d{2}', 3)
If Not @Error Then MsgBox(0, '匹配数量: ' & UBound($aSRE), '其中[0]元素为: ' & $aSRE[0])
_ArrayDisplay($aSRE, UBound($aSRE))
|