Some OEM include energy saving apps that can switch off certain devices such as webcam or optical drive. Is there any brand-agnostic app out there that can do it? If the list of disabled device is customizable, it would be useful too for mitigating DMA attack (disabling Firewire, PCMCIA, SDIO, Thunderbolt, etc). Even better if it can recognize lock/logoff event, to mimic OSX behavior in mitigating the DMA attack.
You can disable hardware devices via commandline
I am not sure that merely disabling a device is sufficient to mitigate the DMA attack
devcon as a command line device management tool
- Obtain the Windows Driver Kit (WDK) 7.1.0 from Microsoft.
- Extract the ISO to a temporary file.
- Expand the windows installer file “”WDK\setuptools_x64fre.msi“” to a temp directory.
devconis located in “drive:\your\temp\folder\WinDDK\7600.16385.win7_wdk.100208-1538\tools\devcon\amd64\".
- Find the device you want to manage. Ex:
devcon find * | find "DVD"
- Disable the device ID returned. Ex:
devcon disable PCI\VEN_1102
- Collect the IDs for all devices you wish to disable
- Add the commands to disable the devices to a simple batch file
- Call the batch file from a logoff script.
- Reverse the commands and add them to another batch file.
- Call this batch file from a logon script.
Note: it may be possible to do this using only powershell but I wasn't able to find the correct calls. The closest I found was
Microsoft supplies Power management profiles that allow one to run with the most suitable profile.
It is possible to further extend Power management by third-party products :
Aerofoil extends Vista and Windows 7 notebook battery life by :
- Allowing you to manually disable Aero Glass.
- Optionally managing Aero Glass user interface.
- Optionally managing sound muting.
- Optionally managing your chosen power plans.
- Optionally managing Windows Sidebar.
- Optionally showing a quick hibernate button.
- Changing icon colour to show whether on battery or AC.
Power Plan Assistant for Windows 7 is capable of much much more than automatic switching of power plans. (Donationware - without donation it requires weekly reinstallation.)