CmdID

CmdID / Commands

enable-pnpdevice

Enable a Plug and Play (PnP) device. tldr-pages

On Windows

Opens CmdID with your command. It is read in your browser and sent nowhere.

Windows

from tldr-pages, CC BY 4.0

Enable 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.

Enable a device

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

Enable all disabled PnP devices

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

Enable a device without confirmation

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

Simulate what would happen if the cmdlet runs

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