$registryPaths = @( "HKCU:\Software\AdGuard", "HKLM:\SOFTWARE\AdGuard", "HKCU:\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppModel\SystemAppData\AdGuardSoftwareLtd.AdGuard_*" ) if (-NOT ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) Write-Host "Error: This script requires Administrator privileges!" -ForegroundColor Red Write-Host "Please run PowerShell as Administrator." -ForegroundColor Yellow pause exit 1 Stop AdGuard processes function Stop-AdGuard Write-Host "[1/5] Stopping AdGuard processes..." -ForegroundColor Yellow
Main 2. Batch Wrapper (Run.bat) @echo off title AdGuard Trial Reset Tool color 0E echo ======================================== echo AdGuard Trial Reset Tool echo ======================================== echo. Adguard Reset Trial
$appDataPaths = @( "$env:APPDATA\AdGuard", "$env:LOCALAPPDATA\AdGuard", "$env:PROGRAMDATA\AdGuard" ) n" -ForegroundColor Yellow
def clear_registry_windows(self): """Clear Windows registry entries""" if self.system != "Windows": return import winreg registry_paths = [ (winreg.HKEY_CURRENT_USER, r"Software\AdGuard"), (winreg.HKEY_LOCAL_MACHINE, r"SOFTWARE\AdGuard"), ] trial_keys = [ "TrialStartDate", "TrialEndDate", "InstallDate", "FirstRunDate", "LicenseKey", "ActivationDate", "TrialUsed", "TrialCount", "LicenseExpires" ] for hkey, subkey in registry_paths: try: key = winreg.OpenKey(hkey, subkey, 0, winreg.KEY_ALL_ACCESS) for trial_key in trial_keys: try: winreg.DeleteValue(key, trial_key) except: pass winreg.CloseKey(key) except: pass print(" ✓ Registry entries cleared") $registryPaths = @( "HKCU:\Software\AdGuard"
Write-Host " ✓ New trial markers set" -ForegroundColor Green function Main if (-not $Silent) Write-Host " nWARNING: This tool resets AdGuard trial period." -ForegroundColor Red Write-Host "This may violate AdGuard's Terms of Service." -ForegroundColor Red Write-Host "Use for educational purposes only! n" -ForegroundColor Yellow