利用powershell屏蔽adobe连接网络

$folderPath = "C:\Program Files\Adobe\Adobe Photoshop 2024"  # 修改为你想要阻止的程序所在目录
$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窗口,直接全部复制进去就行,回车键确定

image.png

就会显示执行结果.

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

image.png

经测试,有效的屏蔽了adobe的验证

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容