Skip to content

Instantly share code, notes, and snippets.

View sdovnic's full-sized avatar
🐱
Inspector Cat

Svenja Dovnic sdovnic

🐱
Inspector Cat
  • DNN digital-nerv.net
  • Allemagne
View GitHub Profile
logging {
category notify {
notify_file;
};
channel queries_file {
file "/var/log/named/queries.log" versions 3 size 5m;
severity dynamic;
print-time yes;
};
category network {
$MozillaId = ((Get-Item -Path "HKLM:\\SOFTWARE\Classes\FirefoxHTML-*" | Select-Object -Property Name -First 1).Name).Split("-")[1]
$InstallsFile = Get-Content -Path $env:APPDATA\Mozilla\Firefox\installs.ini
$InstallsMatch = $InstallsFile -match "\[(.*)\]"
if ($InstallsMatch -ne ("[{0}]" -f $MozillaId)) {
$false
("[{0}]" -f $MozillaId)
$InstallsMatch
} else {
$InstallsFile -replace "\[(.*)\]", ("[{0}]" -f $MozillaId) | Set-Content -Path $env:APPDATA\Mozilla\Firefox\installs.ini
}
https://gpsearch.azurewebsites.net/#8216
HKLM\Software\Policies\Microsoft\WindowsStore
RemoveWindowsStore 1
HKCU\Software\Policies\Microsoft\WindowsStore
RemoveWindowsStore 1
OneDrive
HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}
$NetConnectionProfile = Import-Clixml -Path NetConnectionProfile.xml
foreach($Network in Get-NetConnectionProfile | Sort-Object -Property InterfaceIndex | Select-Object -First 1) {
if ($Network.Name -match "Netzwerk") {
if ($Network.NetworkCategory -ne $NetConnectionProfile) {
Set-NetConnectionProfile -Name $Network.Name -NetworkCategory $NetConnectionProfile
}
}
}
$Path = "C:\Users\Public"
Start-Transcript -Path (Join-Path -Path $Path -ChildPath ("{0}-Startup.txt" -f $env:COMPUTERNAME)) -NoClobber -Append -Verbose
$VerbosePreference = "continue"
# Enable Network Discovery / Require UAC
Get-NetFirewallRule -Group "@FirewallAPI.dll,-32752" -Enabled False -ErrorAction SilentlyContinue | Where-Object -FilterScript {$_.Profile -eq "Private" -or $_.Profile -eq "Domain"} | ForEach-Object -Process {
Set-NetFirewallRule -Name $_.Name -Enabled True -Verbose
}
Get-NetFirewallRule -Group "@FirewallAPI.dll,-28502" -Enabled False -ErrorAction SilentlyContinue | Where-Object -FilterScript {$_.Profile -eq "Private" -or $_.Profile -eq "Domain"} | ForEach-Object -Process {
snogami 野上 冴子 porsche930 Benutzer
<Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04">
<S>*</S>
</Objs>
<Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04">
<Obj RefId="0">
<TN RefId="0">
<T>System.Collections.Hashtable</T>
<T>System.Object</T>
</TN>
<DCT>
<En>
<I32 N="Key">2</I32>
<S N="Value">2.de.pool.ntp.org</S>
$Path = "C:\Users\Public"
Start-Transcript -Path (Join-Path -Path $Path -ChildPath ("{0}-StartupTask.txt" -f $env:COMPUTERNAME)) -NoClobber -Append -Verbose
$VerbosePreference = "continue"
# $RestartComputer = $false
# Disable RestoreConnection in Windows Explorer / Default not exist
if ([System.Environment]::OSVersion.Version.Major -eq 10) {
$Path = "HKLM:\SYSTEM\CurrentControlSet\Control\NetworkProvider"
if (-not (Get-ItemProperty -Path $Path -Name "RestoreConnection" -ErrorAction SilentlyContinue)) {
<Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04">
<S>Microsoft.MicrosoftSolitaireCollection</S>
<S>Microsoft.MinecraftUWP</S>
<S>Microsoft.SkypeApp</S>
<S>A278AB0D.MarchofEmpires</S>
<S>A278AB0D.DisneyMagicKingdoms</S>
<S>89006A2E.AutodeskSketchBook</S>
<S>46928bounde.EclipseManager</S>
<S>D5EA27B7.Duolingo-LearnLanguagesforFree</S>
<S>king.com.CandyCrushSodaSaga</S>