Powershell如何在internet explorer中允许被阻止的内容

Powershell如何在internet explorer中允许被阻止的内容,powershell,internet-explorer,Powershell,Internet Explorer,你知道如何使用powershell在IE属性中启用和禁用“允许活动内容在我的计算机上的文件中运行”吗?这对我很有用! This worked for me ! When the HTML page is loaded from local machine (local file path), the ActiveX control can be blocked by the Local Machine Lockdown feature. You should be able to worka

你知道如何使用powershell在IE属性中启用和禁用“允许活动内容在我的计算机上的文件中运行”吗?

这对我很有用!
This worked for me !

When the HTML page is loaded from local machine (local file path), the ActiveX control can be blocked by the Local Machine Lockdown feature.  You should be able to workaround it by adding a mark-of-web
 (<!-- saved from url=(0014)about:internet -->) at the beginning of your HTML page.
从本地计算机(本地文件路径)加载HTML页面时,ActiveX控件可以被本地计算机锁定功能阻止。您应该能够通过添加web标记来解决此问题 ()在HTML页面的开头。
您可以通过注册表项实现相同的功能。首先创建注册表项
iexplore.exe
(Dword) 在路径
HKEY\u CURRENT\u USER\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE\u LOCALMACHINE\u LOCKDOWN中

如果将该值设置为1,“允许活动内容在我的计算机上的文件中运行”将被取消选中

如果将该值设置为0,将选中“允许活动内容在我的计算机上的文件中运行”