HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

Enable-PnpDevice — The Enable-PnpDevice cmdlet enables a Plug and Play (PnP) device. You must use an Administrator acco

Submitted by: @import:tldr-pages··
0
Viewed 0 times
thepnpdevicecommandenablesclienable-pnpdeviceenablecmdlet
windows

Problem

How to use the Enable-PnpDevice command: The Enable-PnpDevice cmdlet enables a Plug and Play (PnP) device. You must use an Administrator account to enable a device. Note: This command can only be used through PowerShell. More information: <https://learn.microsoft.com/powershell/module/pnpdevice/enable-pnpdevice>.

Solution

Enable-PnpDevice — The Enable-PnpDevice cmdlet enables a Plug and Play (PnP) device. You must use an Administrator account to enable a device. Note: This command can only be used through PowerShell. More information: <https://learn.microsoft.com/powershell/module/pnpdevice/enable-pnpdevice>.

Enable a device:
Enable-PnpDevice -InstanceId 'RETRIEVED USING Get-PnpDevice COMMAND'


Enable all disabled PnP devices:
Get-PnpDevice | Where-Object {$_.Problem -eq 22} | Enable-PnpDevice


Enable a device without confirmation:
Enable-PnpDevice -InstanceId 'RETRIEVED USING Get-PnpDevice COMMAND' -Confirm:$False


Dry run of what would happen if the cmdlet runs:
Enable-PnpDevice -InstanceId 'USB\VID_5986&;PID_0266&;MI_00\7&;1E5D3568&;0&;0000' -WhatIf:$True

Code Snippets

Enable a device

Enable-PnpDevice -InstanceId 'RETRIEVED USING Get-PnpDevice COMMAND'

Enable all disabled PnP devices

Get-PnpDevice | Where-Object {$_.Problem -eq 22} | Enable-PnpDevice

Enable a device without confirmation

Enable-PnpDevice -InstanceId 'RETRIEVED USING Get-PnpDevice COMMAND' -Confirm:$False

Dry run of what would happen if the cmdlet runs

Enable-PnpDevice -InstanceId 'USB\VID_5986&;PID_0266&;MI_00\7&;1E5D3568&;0&;0000' -WhatIf:$True

Context

tldr-pages: windows/Enable-PnpDevice

Revisions (0)

No revisions yet.