NIC Power Management – Exchange Server 2013 and 2016

Although Microsoft released this guidance a while back, NIC Power Management settings are almost always overlooked in an Exchange 2010 or 2013 environment. With the introduction of Exchange 2016, the guidance has not changed. I’ve put together a script built on a script that was written by Microsoft and modified to be a bit more flexible.

The Script

Here is the code for checking and setting your NIC to the correct setting for Exchange.

Let’s say you run the script against your Exchange server, the script will look for some values that are configured for your NIC. These settings are stored within WMI. The script looks for the setting to be 24 (Power Management is disabled). If it is not, then it will see if the value is Null or 0. If these values are picked up, the script changes the number to 24. If something else is detected, the script will prompt you to make sure you want to change the setting. If you do not, you will receive a warning that you should change the setting:

If we choose instead to configure it, we will see this:

Once configured and we run the script again, we will see it is already disbled:

However, make sure that you are running your PowerShell window as an Administrator, otherwise you will get this error: