Main 2. Batch Wrapper (Run.bat) @echo off title AdGuard Trial Reset Tool color 0E echo ======================================== echo AdGuard Trial Reset Tool echo ======================================== echo.
resetter = AdGuardTrialReset() resetter.run() For PowerShell script:
$eventSources = @("AdGuard", "AdGuardSvc") foreach ($source in $eventSources) try Where-Object $_.ProviderName -eq $source catch # Silently continue Adguard Reset Trial
foreach ($regPath in $registryPaths) $actualPaths = Get-ChildItem -Path $regPath -ErrorAction SilentlyContinue foreach ($path in $actualPaths) foreach ($key in $trialKeys) Remove-ItemProperty -Path $path.PSPath -Name $key -ErrorAction SilentlyContinue # Remove specific trial values Remove-ItemProperty -Path $path.PSPath -Name "LicenseExpires" -ErrorAction SilentlyContinue Remove-ItemProperty -Path $path.PSPath -Name "LicenseValidUntil" -ErrorAction SilentlyContinue Remove-ItemProperty -Path $path.PSPath -Name "TrialPeriod" -ErrorAction SilentlyContinue
$appDataPaths = @( "$env:APPDATA\AdGuard", "$env:LOCALAPPDATA\AdGuard", "$env:PROGRAMDATA\AdGuard" ) Main 2
Write-Host " ✓ Registry entries cleared" -ForegroundColor Green function Clear-AppData Write-Host "[3/5] Clearing application data..." -ForegroundColor Yellow
def clear_app_data(self): """Clear application data files""" print("[2/5] Clearing application data...") # Remove license and trial files for base_path in [self.user_paths['appdata'], self.user_paths['localappdata'], self.user_paths['programdata']]: if base_path and base_path.exists(): adguard_path = base_path / "AdGuard" if adguard_path.exists(): for pattern in ["*.lic", "*.dat", "*trial*", "activation.json", "state.db"]: for file in adguard_path.glob(pattern): try: file.unlink() print(f" Removed: file.name") except: pass print(" ✓ Application data cleared") Adguard Reset Trial
Start-Sleep -Seconds 2 Write-Host " ✓ AdGuard processes stopped" -ForegroundColor Green function Clear-RegistryEntries Write-Host "[2/5] Clearing registry entries..." -ForegroundColor Yellow