Created
April 25, 2025 11:08
-
-
Save MrWhitee4/0fd33653b3e4940fe052dbcd9c09d362 to your computer and use it in GitHub Desktop.
CheckNetworkProfile_Task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-16"?> | |
<Task version="1.2" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task"> | |
<RegistrationInfo> | |
<Author>DeinName</Author> | |
<Description>Prüft Netzwerkprofil und startet Adapter neu, wenn "Public"</Description> | |
</RegistrationInfo> | |
<Triggers> | |
<BootTrigger> | |
<Enabled>true</Enabled> | |
</BootTrigger> | |
</Triggers> | |
<Principals> | |
<Principal id="Author"> | |
<LogonType>ServiceAccount</LogonType> | |
<RunLevel>HighestAvailable</RunLevel> | |
<UserId>S-1-5-18</UserId> | |
</Principal> | |
</Principals> | |
<Settings> | |
<MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy> | |
<DisallowStartIfOnBatteries>false</DisallowStartIfOnBatteries> | |
<StopIfGoingOnBatteries>false</StopIfGoingOnBatteries> | |
<AllowHardTerminate>true</AllowHardTerminate> | |
<StartWhenAvailable>true</StartWhenAvailable> | |
<RunOnlyIfNetworkAvailable>false</RunOnlyIfNetworkAvailable> | |
<IdleSettings> | |
<StopOnIdleEnd>false</StopOnIdleEnd> | |
<RestartOnIdle>false</RestartOnIdle> | |
</IdleSettings> | |
<AllowStartOnDemand>true</AllowStartOnDemand> | |
<Enabled>true</Enabled> | |
<Hidden>false</Hidden> | |
<RunOnlyIfIdle>false</RunOnlyIfIdle> | |
<WakeToRun>false</WakeToRun> | |
<ExecutionTimeLimit>PT5M</ExecutionTimeLimit> | |
<Priority>7</Priority> | |
</Settings> | |
<Actions Context="Author"> | |
<Exec> | |
<Command>powershell.exe</Command> | |
<Arguments>-ExecutionPolicy Bypass -File "C:\Scripts\CheckAndReset-PublicNetworkProfiles.ps1"</Arguments> | |
</Exec> | |
</Actions> | |
</Task> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment