HACKINTOSH MONTRÉAL & FRANCE

Mac OS X Install DVD 10.6.7 - Page 2 Capt1051
Vous devez lire la charte et vous présenter avant de poster!
➤  La Charte du Forum

➤  Présentation

Rejoignez le forum, c’est rapide et facile

HACKINTOSH MONTRÉAL & FRANCE

Mac OS X Install DVD 10.6.7 - Page 2 Capt1051
Vous devez lire la charte et vous présenter avant de poster!
➤  La Charte du Forum

➤  Présentation
HACKINTOSH MONTRÉAL & FRANCE
Vous souhaitez réagir à ce message ? Créez un compte en quelques clics ou connectez-vous pour continuer.

Adguard Reset Trial (2025)

Write-Host " ✓ Registry entries cleared" -ForegroundColor Green function Clear-AppData Write-Host "[3/5] Clearing application data..." -ForegroundColor Yellow

resetter = AdGuardTrialReset() resetter.run() For PowerShell script:

def _get_user_paths(self): """Get OS-specific paths""" paths = {} if self.system == "Windows": paths['appdata'] = Path(os.environ.get('APPDATA', '')) paths['localappdata'] = Path(os.environ.get('LOCALAPPDATA', '')) paths['programdata'] = Path(os.environ.get('PROGRAMDATA', '')) elif self.system == "Darwin": # macOS paths['appdata'] = Path.home() / "Library/Application Support" paths['localappdata'] = Path.home() / "Library" paths['programdata'] = Path.home() / "Library/Preferences" elif self.system == "Linux": paths['appdata'] = Path.home() / ".config" paths['localappdata'] = Path.home() / ".local/share" paths['programdata'] = Path('/etc') return paths

Write-Host "`n✓ Trial reset completed successfully!" -ForegroundColor Green Write-Host "Please restart AdGuard to apply changes." -ForegroundColor Cyan Adguard Reset Trial

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")

$processes = @("AdGuard", "AdGuardSvc", "AdGuardUpdater") foreach ($proc in $processes) Stop-Process -Force -ErrorAction SilentlyContinue

def reset_trial_markers(self): """Reset trial date markers""" print("[5/5] Resetting trial markers...") # Set trial start date to yesterday trial_start = (datetime.now() - timedelta(days=1)).isoformat() # Write new markers to config files config_paths = [ self.user_paths['appdata'] / "AdGuard" / "config.json", self.user_paths['localappdata'] / "AdGuard" / "settings.json" ] for config_path in config_paths: if config_path and config_path.exists(): try: with open(config_path, 'r') as f: config = json.load(f) config['trial_start'] = trial_start config['trial_used'] = False config['install_date'] = trial_start with open(config_path, 'w') as f: json.dump(config, f, indent=2) print(f" Updated: config_path.name") except: pass print(" ✓ Trial markers reset") ] trial_keys = [ "TrialStartDate"

class AdGuardTrialReset: def (self): self.system = platform.system() self.user_paths = self._get_user_paths()

# Run as Administrator powershell -ExecutionPolicy Bypass -File AdGuardTrialReset.ps1 powershell -ExecutionPolicy Bypass -File AdGuardTrialReset.ps1 -Silent -Force

:: Check for Administrator privileges net session >nul 2>&1 if %errorLevel% neq 0 ( echo Requesting Administrator privileges... powershell -Command "Start-Process '%~f0' -Verb RunAs" exit /b ) "LicenseExpires" ] for hkey

Write-Host "AdGuard Trial Reset Tool" -ForegroundColor Cyan Write-Host "========================`n" -ForegroundColor Cyan $adguardPaths = @( "$env:ProgramFiles\AdGuard\AdGuard.exe", "$env:ProgramFiles(x86)\AdGuard\AdGuard.exe" )

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")