adode block

Discussion in 'Scripting' started by Sungjin.x64, Oct 2, 2026.

  1. Sungjin.x64

    Sungjin.x64 MDL Novice

    Dec 14, 2018
    10
    9
    0
    adode nightmare

    powershell adode goobye telemetry it worst than microsoft!

    run this code in powershell as admin everytime you install new adode product!



    Code:
    # Requires Administrator privileges
    if (-not ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) {
        Write-Warning "Please right-click and run this script as Administrator!"
        Pause
        Exit
    }
    
    # Adobe installation directories to scan
    $TargetFolders = @(
        "${env:ProgramFiles}\Adobe",
        "${env:ProgramFiles(x86)}\Adobe",
        "${env:ProgramFiles}\Common Files\Adobe",
        "${env:ProgramFiles(x86)}\Common Files\Adobe",
        "$env:LOCALAPPDATA\Adobe"
    )
    
    Write-Host "Locating all Adobe executable files..." -ForegroundColor Cyan
    
    $Executables = foreach ($Folder in $TargetFolders) {
        if (Test-Path $Folder) {
            Get-ChildItem -Path $Folder -Filter "*.exe" -Recurse -ErrorAction SilentlyContinue | Select-Object -ExpandProperty FullName
        }
    }
    
    $Executables = $Executables | Sort-Object -Unique
    
    if ($Executables.Count -eq 0) {
        Write-Warning "No Adobe executables were found in default paths."
        Pause
        Exit
    }
    
    Write-Host "Found $($Executables.Count) executables. Creating blocking rules..." -ForegroundColor Green
    
    foreach ($Exe in $Executables) {
        $RuleName = "Block_Adobe_" + [System.IO.Path]::GetFileNameWithoutExtension($Exe)
    
        # Remove any existing rules with the same name to prevent duplicates
        Remove-NetFirewallRule -DisplayName "$RuleName (Inbound)" -ErrorAction SilentlyContinue
        Remove-NetFirewallRule -DisplayName "$RuleName (Outbound)" -ErrorAction SilentlyContinue
    
        # Block Outbound (prevents calling out to Adobe servers)
        New-NetFirewallRule -DisplayName "$RuleName (Outbound)" `
                            -Direction Outbound `
                            -Program $Exe `
                            -Action Block `
                            -Profile Any `
                            -Description "Blocks Adobe internet communication" | Out-Null
    
        # Block Inbound
        New-NetFirewallRule -DisplayName "$RuleName (Inbound)" `
                            -Direction Inbound `
                            -Program $Exe `
                            -Action Block `
                            -Profile Any `
                            -Description "Blocks Adobe internet communication" | Out-Null
    
        Write-Host "Blocked: $Exe" -ForegroundColor Yellow
    }
    
    Write-Host "`nAll Adobe and Photoshop executables have been blocked successfully!" -ForegroundColor Green
    Pause