I had request to disable the setting ‘Allow the computer to turn off this device to save power’ in power management settings on network adaptor.
From the screenshot above,there are 3 settings that will help for wake on Lan .All these settings information stored in client WMI. we want to uncheck the first option (Allow the computer to turn off this device to save power’ ) by leaving the rest of the 2 controls as it is.
In this blog post ,we will see how to change the power management settings on client using configuration manager compliance settings.
Before i go into compliance settings, i will provide you the WMI class and instance that store the information about power management settings ,so we can make use of these options in compliance settings
1. Allow the computer to turn off this device to save power , wmi class: root\wmi , instance:MSPower_DeviceEnable , property:Enable
2. Allow this device to wake the computer ,wmi class:root\wmi , instance: MSPower_DeviceWakeEnable , property:Enable
3.Only allow a magic packet to wake the computer ,wmi class:root\wmi , instance: MSNdis_DeviceWakeOnMagicPacketOnly, property:Enable
After you have the information about wmi ,it is easy to create configuration item and configuration baseline.
Create configuration item with name: Disable ‘Allow the computer to turn off this device to save power’ ,leave the default settings ,click next,choose the operating system that you want to deploy this setting
Under settings, create new with following information:
Name:MSPower_DeviceEnable ,Setting Tpe: WQL Query ,Data Type: Boolean , wmi class: root\wmi , instance:MSPower_DeviceEnable , property:Enable ,WQL Query: InstanceName like 'PCI%'
For other 2 settings ,all you need is ,change the class with information given above in point 2 and 3.
Click on Compliance Rule ,click New ,follow the below settings.
For other 2 settings point 2 and 3 ,you can either set to True or False as per your needs.
Click ok
We now created configuration item and ready to create configuration baseline and deploy to Device Collection.
When you deploy the configuration baseline, make sure you choose the following setting to remediate (Allow remediation outside maintenance window is upto you ,you can either for maintenance window or ignore the window and remediate the setting)
End user results:
Hope it helps!