![]() pathToSignedReportingExe Next Dim $AvStatus = Hex ( $lArray ) If StringMid ( $AvStatus, 5, 2 ) = "10" Or StringMid ( $AvStatus, 5, 2 ) = "11" Then $lArray = "Enabled" ElseIf StringMid ( $AvStatus, 5, 2 ) = "00" Or StringMid ( $AvStatus, 5, 2 ) = "01" Then $lArray = "Disabled" EndIf Return $lArray EndFunc =>_GetAVInfoĪnother method to check for Antivirus/Firewall statusĪny of my own code posted anywhere on the forum is available for use by others without any restriction of any kind. pathToSignedProductExe $lArray = $objAntiVirusProduct. ![]() productstate $lArray = $objAntiVirusProduct. displayName $lArray = $objAntiVirusProduct. ExecQuery ( "Select * from AntiVirusProduct" ) For $objAntiVirusProduct In $colItems $lArray = $objAntiVirusProduct. ![]() PathToSignedReportingExe: C:\Program Files\Microsoft Security Client\MsMpEng.exe Func _GetAVInfo ( ) Dim $lArray $oWMI = ObjGet ( "winmgmts:\\localhost\root\Securit圜enter2" ) $colItems = $oWMI. PathToSignedProductExe: C:\Program Files\Microsoft Security Client\msseces.exe Current AV: Microsoft Security Essentials
0 Comments
Leave a Reply. |