How to disable a device in Device Manager on multiple computers

Jasper 1 Reputation point
2022-11-15T00:29:06.303+00:00

Hi!

I need to disable a device in Device Manager in over 300 laptops, but I know there has to be better way to disable it rather than going to all of them and physically touching it.
Can this be done in Endpoint Manager? Maybe a PowerShell script?

Any help would be greatly appreciated!

Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,604 questions
Microsoft Intune Configuration
Microsoft Intune Configuration
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.Configuration: The process of arranging or setting up computer systems, hardware, or software.
1,977 questions
Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
5,458 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Crystal-MSFT 51,051 Reputation points Microsoft Vendor
    2022-11-15T02:02:48.873+00:00

    @Jasper , Based as I know, there's no built option to disable hardware device in device manager in Intune. But you can check if there's any PowerShell Script to do this.

    After researching, I find a link describe this. You can write the PowerShell script refer to the following link:
    https://aidenwebb.com/posts/how-to-enable/disable-hardware-devices-using-windows-powershell/
    Note: Non-Microsoft link, just for the reference.

    After the PowerShell script is working on one device, then we can consider deploying it in a batch via Intune script
    https://learn.microsoft.com/en-us/mem/intune/apps/intune-management-extension

    Hope it can help.


    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.