Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-16"?>
- <Task version="1.4" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
- <RegistrationInfo>
- <Date>2024-01-15T19:45:41.0969288</Date>
- <Author>Joeytje50</Author>
- <Description>Resets internet after sleep</Description>
- <URI>\Fix internet after sleep</URI>
- </RegistrationInfo>
- <Triggers>
- <SessionStateChangeTrigger>
- <Enabled>true</Enabled>
- <StateChange>SessionUnlock</StateChange>
- </SessionStateChangeTrigger>
- <EventTrigger>
- <Enabled>true</Enabled>
- <Subscription><QueryList><Query Id="0" Path="System"><Select Path="System">*[System[Provider[@Name='Power-Troubleshooter'] and EventID=1]]</Select></Query></QueryList></Subscription>
- </EventTrigger>
- </Triggers>
- <Principals>
- <Principal id="Author">
- <UserId>REMOVED</UserId>
- <LogonType>S4U</LogonType>
- <RunLevel>HighestAvailable</RunLevel>
- </Principal>
- </Principals>
- <Settings>
- <MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy>
- <DisallowStartIfOnBatteries>true</DisallowStartIfOnBatteries>
- <StopIfGoingOnBatteries>true</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>PT72H</ExecutionTimeLimit>
- <Priority>7</Priority>
- </Settings>
- <Actions Context="Author">
- <Exec>
- <Command>powershell</Command>
- <Arguments>-NonInteractive -ExecutionPolicy Bypass -command C:\fixinternet.ps1</Arguments>
- </Exec>
- </Actions>
- </Task>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement