windows - 如何自动化 "Windows Security"窗口: "Windows can' t verify the publisher of this driver software"

标签 windows winforms automation autoit

这应该是一个简单的问题,应该有一个简单的解决方案……但我尝试过的任何方法都不起作用。我的问题是为什么? Microsoft 中是否有防止将 key 发送到“安全窗口”的安全功能?

enter image description here

AutoiT 尝试(无效):

WindWait("Windows Security")
Send("{DOWN}")
Sleep(10)
Send("{ENTER}")

我也试过/看过这个 question

我曾尝试在 C++ 和 C# 中执行此操作,但我只能让窗口成为​​事件窗口,但当我向它发送键时,它会忽略它。

以下是我为了抑制或自动化此窗口而查看的一些地方:

Windows 7 - Disable signature verification of drivers

Permanently disable driver signature enforcement on Win 7 x64

How to disable driver signing in Windows 7 SP1

Disabling digital driver signing in Windows 7

Windows - Suppress "Windows can't verify the publisher of this driver software"

以上链接中的所有“解决方案”均无效。我一直在寻找超过 2 天的答案。

如果有人能告诉我一个成功的方法来抑制/自动化这个我(以及每个想知道如何做到这一点的人)将非常感激。

最佳答案

您是否能够使用 Win... 函数识别窗口?如果是这样,您可以尝试使用 MouseClick :

$aPos = WinGetPos("Windows Security")
MouseClick("left", $aPos[0]+50, $aPos[1]+100)

首先获取窗口的位置,然后添加一些像素,以便在您使用鼠标右键单击时单击相应的按钮。当然,您需要调整添加到 x-/y-轴的像素数。

关于windows - 如何自动化 "Windows Security"窗口: "Windows can' t verify the publisher of this driver software",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17960262/

相关文章:

windows - 隐藏 ListView 中列之间的垂直线

linux - Zlib 解压缩脚本适用于 linux 但不适用于 windows : error -5 while decompressing data: incomplete or truncated stream

C# 从数据集中填充 DataGridViewComboBoxCell 并从数据库中获取选定的值

javascript - 阻止网络浏览器中的自定义广告对话框

python - 自动化电子商务

python - 如何在cmd中运行不同的python版本

windows - 为什么我不能将我的 AWS EC2 实例加入到 Active Directory?

c# - 将字符串转换为按钮

testing - 您如何针对多个服务器有效地运行测试自动化以进行验证?

javascript - 如何使用 osascript 获取 JavaScript 中的服务列表?