美文网首页
利用powershell屏蔽adobe连接网络

利用powershell屏蔽adobe连接网络

作者: 晓函 | 来源:发表于2024-12-10 17:00 被阅读0次
$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的验证

相关文章

  • 利用powershell监控文件夹变动

    利用powershell监控某个文件夹下面的文件变化 使用powershell运行后如图:

  • powershell 连接azure

    1.windows 10 默认安装了powershell5.0 ,需要下载azure模块要以管理员身份运行powe...

  • Android模拟器不能上网解决方案

    启动的时候设置dns 利用powershell脚本启动2.1 先设置powershell 执行策略限制Unrest...

  • 无标题文章

    用powershell 管理windows 服务器 1 连接远程powershell 1.1 服务器端配置 开启w...

  • Adobe hosts 屏蔽列表

    还在担心 Adobe 会在后台悄悄连接网络?把下面这些内容加入到 hosts 文件中吧 另外,如果使用了代理,需要...

  • 笔记本win10同时使用内外网

    个人用的是win10系统win+x选择powershell管理员模式 1.获取网关及网络地址 连接内网,断开外网,...

  • CNN卷积神经网络

    全连接神经网络 在利用全连接神经网络进行图像分类时,网络中的神经元与相邻的层上的每个神经元均连接: 输入层代表每个...

  • jsoup:网络连接

    结构 核心方法:execute 利用 HttpURLConnection 进行网络连接,发送与读取数据。

  • windows--powerShell

    1.打开powershell,命令行执行powershell 2.下载网络文件 在命令行窗口执行 $client ...

  • 利用AFN测试网络连接

网友评论

      本文标题:利用powershell屏蔽adobe连接网络

      本文链接:https://www.haomeiwen.com/subject/gwvasjtx.html