Disable "Allow this computer to turn off this device to save power" for all laptops using Intune

Jonathan Martin 6 Reputation points
2024-03-12T20:35:25.42+00:00

Hello,

I want to disable the setting "Allow this computer to turn off this device to save power," located in the Power Management tab of the properties of all devices under the Universal Serial Bus controller inside Device Manager. Ideally, I'd like to accomplish this using an intune configuration profile. So far, I have not located the correct settings inside the configuration settings catalog. I suspect it is Power Management related. Using a script to manually disable by editing the registry seems possible. While I'm not opposed to that option, it is my second choice. I'd be happy with anyone who can assist with either method.

Windows for business | Windows Server | User experience | PowerShell
Windows for business | Windows Client for IT Pros | User experience | Other
Microsoft Security | Intune | Other
0 comments No comments
{count} vote

2 answers

Sort by: Most helpful
  1. glebgreenspan 2,245 Reputation points
    2024-03-12T21:05:42.3133333+00:00

    Hello Jonathan

    Here is script what i was using before on our end

    Test see if that can helps you

    #Disable PowerSave for Network Devices. #enumerate Network Class keys, the subkeys contain all network adapters, both virtual/software and physical devices $KeyPath = "SYSTEM\CurrentControlSet\Control\Class{4D36E972-E325-11CE-BFC1-08002BE10318}" $SubKeys = get-childitem -name -path "HKLM:$KeyPath" -ErrorAction "SilentlyContinue" -Exclude "Properties" Foreach ($SubKey in $SubKeys) { $NetworkCardSettings = Get-ItemProperty "HKLM:$KeyPath$SubKey" If ($NetworkCardSettings.ComponentId -and $NetworkCardSettings.ComponentId.StartsWith("pci")) { $PnPCapabilities = $NetworkCardSettings.PnPCapabilities -bOR "24" Set-ItemProperty -path "HKLM:$KeyPath$SubKey" -name "pnpCapabilities" -value $PnPCapabilities -Type "DWORD" } }

    0 comments No comments

  2. Crystal-MSFT 53,991 Reputation points Microsoft External Staff
    2024-03-13T01:21:03.48+00:00

    @Jonathan Martin, Thanks for posting in Q&A. After checking, I find currently there's no built-in configuration policy to set "Allow this computer to turn off this device to save power" in Intune. You can feedback in the following link to see if we can get this feature in the future.

    https://feedbackportal.microsoft.com/feedback/forum/ef1d6d38-fd1b-ec11-b6e7-0022481f8472

    I notice it has registry key to change the setting. I think PowerShell script is an option for you.

    Thanks for your understanding.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.