鲍成龙
千里之行,始于足下。
鲍成龙
$folderPath = "C:\Program Files\Acrobat DC"  # 修改为你想要阻止的程序所在目录
$exeFiles = Get-ChildItem -Path $folderPath -Filter *.exe

foreach ($exe in $exeFiles) {
    Write-Output $exe #打印出来
    # 为每个exe文件创建入站和出站规则,阻止它们的网络访问
    New-NetFirewallRule -DisplayName "BlockAdobe $($exe.Name)" -Direction Outbound -Program $exe.FullName -Action Block
    New-NetFirewallRule -DisplayName "BlockAdobe $($exe.Name)" -Direction Inbound -Program $exe.FullName -Action Block
}

打开Powershell窗口,直接全部复制进去就行,回车键确定

Windows 利用PowerShell屏蔽Adobe连接网络

windows防火墙的规则中就批量添加好了阻止规则

win +R 输入 control

Windows 利用PowerShell屏蔽Adobe连接网络

Windows 利用PowerShell屏蔽Adobe连接网络 Windows 利用PowerShell屏蔽Adobe连接网络 Windows 利用PowerShell屏蔽Adobe连接网络 Windows 利用PowerShell屏蔽Adobe连接网络