Skip to content

Instantly share code, notes, and snippets.

View MrWhitee4's full-sized avatar
🎯
Focusing

MrWhitee MrWhitee4

🎯
Focusing
View GitHub Profile
@MrWhitee4
MrWhitee4 / CheckNetworkProfile_Task.xml
Created April 25, 2025 11:08
CheckNetworkProfile_Task
<?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>
@MrWhitee4
MrWhitee4 / Check-NetworkProfileAndRestart.ps1
Created April 25, 2025 11:04
CheckAndReset-PublicNetworkProfiles
# ============================================
# Script: Check-NetworkProfileAndRestart.ps1
# Funktion: Prüft Netzwerkprofil, Neustart bei "Public"
# Voraussetzungen: Adminrechte
# ============================================
# Konfiguration
$logFile = "C:\Logs\NetworkProfileCheck.log"
$eventSource = "Network"
$eventLogName = "System"