PowerShellでIEセキュリティ強化の構成を無効化


 

コマンドレット一発ではできないのね。


function Disable-IEESC
{
$AdminKey = “HKLM:\SOFTWARE\Microsoft\Active Setup\Installed Components\{A509B1A7-37EF-4b3f-8CFC-4F3A74704073}”
$UserKey = “HKLM:\SOFTWARE\Microsoft\Active Setup\Installed Components\{A509B1A8-37EF-4b3f-8CFC-4F3A74704073}”
Set-ItemProperty -Path $AdminKey -Name “IsInstalled” -Value 0
Set-ItemProperty -Path $UserKey -Name “IsInstalled” -Value 0
Stop-Process -Name Explorer
Add-Content $log -value "IE Enhanced Security Configuration (ESC) has been disabled."
}
Disable-IEESC

参考:http://blog.blksthl.com/2012/11/28/how-to-disable-ie-enhanced-security-in-windows-server-2012/

 
EC2のuserdataに仕込んで、Windowsインスタンス起動時に自動的に無効化されるようにしたった。(商用環境ではダメよ)

This entry was posted in PowerShell. Bookmark the permalink. Both comments and trackbacks are currently closed.

関連記事