Page 1 of 1

Can you log a Chassis intrusion in Win XP?

Posted: Thu Sep 03, 2009 10:47 am
by revroy123
Hi all.

Can anyone tell me if its possible to log in Wiondows XP if someone has triggered the intrusion detection on the motherboard?

We are using Asus P5KPL-AM boards.

Thanks

Re: Can you log a Chassis intrusion in Win XP?

Posted: Tue Jul 12, 2011 8:07 am
by edwin
I found a bit of code elsewhere:

Code: Select all

Imports System
Imports System.Management
Imports System.Windows.Forms

Namespace WMISample

Public Class MyWMIQuery

Public Overloads Shared Function Main() As Integer

Try
Dim searcher As New ManagementObjectSearcher( _
"root\CIMV2", _
"SELECT * FROM Win32_SystemEnclosure") 

For Each queryObj As ManagementObject in searcher.Get()

Console.WriteLine("-----------------------------------")
Console.WriteLine("Win32_SystemEnclosure instance")
Console.WriteLine("-----------------------------------")
Console.WriteLine("BreachDescription: {0}", queryObj("BreachDescription"))
Next
Catch err As ManagementException
MessageBox.Show("An error occurred while querying for WMI data: " & err.Message)
End Try
End Function
End Class
End Namespace