foreach ($NIC in (Get-NetAdapter -Physical)){ echo NIC $NIC $PowerSaving = Get-CimInstance -ClassName MSPower_DeviceEnable -Namespace root\wmi | ? {$_.InstanceName -match [Regex]::Escape($NIC.PnPDeviceID)} if ($PowerSaving.Enable){ $PowerSaving.Enable = $false echo NIC PS Modified $PowerSaving | Set-CimInstance } }