WMI Fun !! 〜 WMI に興味がある方・システム管理者必見! 〜 |
|
![]() |
WMI Fun !! > WMI Sample (VB) > Internet Explorer のセキュリティゾーンの設定を取得する |
Internet Explorer のセキュリティゾーンの設定を取得する: MicrosoftIE_Security - WMI Sample (VB)Topics
Internet Explorer のセキュリティゾーンの設定を取得するサンプルプログラムです。
Sample Code
Private Sub Command1_Click()
Dim MieSet As SWbemObjectSet Dim Mie As SWbemObject Dim Locator As SWbemLocator Dim Service As SWbemServices Dim MesStr As String Set Locator = New WbemScripting.SWbemLocator Set Service = Locator.ConnectServer(, "Root\CIMV2\Applications\MicrosoftIE") Set MieSet = Service.ExecQuery("Select * From MicrosoftIE_Security") For Each Mie In MieSet MesStr = MesStr & Mie.Level & ": " & Mie.Zone & vbCrLf & vbCrLf Next MsgBox "IE のセキュリティゾーンの設定一覧です。" & vbCrLf & _ vbCrLf & MesStr & "ですよ。" Set MieSet = Nothing Set Mie = Nothing Set Service = Nothing Set Locator = Nothing End Sub
![]() Comment
実行すると Internet Explorer の各ゾーンごとに、現在のセキュリティ設定がどのようなセキュリティレベル設定になっているのか表示します。
![]() Recommended book
個人的にお勧めする本の紹介です。 ![]() |
ご意見・ご要望・ご感想をこちらのアンケートからお待ちしています |
∧ ページの先頭へ… |