OK, how many times has this happened to you, oh helpdesk worker:
<RING><RING>…Helpdesk, how can I help? … Yeah, I’ve got this popup that says "chassis intrusion detected", and it keeps popping up every 30 minutes. If it doesn’t go away soon, I’m going to quit my job, and file a lawsuit… No problem, we’ll send someone over right away to fix it… Thirty minutes later, someone arrives on the scene, shuts the computer off, starts up into the BIOS, and flips the intrusion flag, restarts the computer, and then heads back.
OK, so maybe that’s never happened to you, but if it has, you’ll appreciate the ease with which you can silence the alert and the customer before they hang up the phone. Assuming you are working with a Dell desktop (and many corporate hepdesks are), all you need is to have installed Dell’s OMCI (OpenManage Client Instrumentation) software on the client, and PowerShell on your desktop. You can complete said task in 20 seconds with three lines of code:
$WMI = Get-WmiObject -computer computername -namespace "root/DellOMCI" -class Dell_SMBIOSSettings
$WMI.ChassisIntrusionStatus = "5"
There you have it! One of the many difficult tasks made simple with PowerShell!