Search

How to enable a device using PowerShell Enable-PnpDevice Cmdlet

In this lesson, let us learn how to enable a device using PowerShell Enable-PnpDevice cmdlet. PowerShell Enable-PnpDevice cmdlet can be used to enable a device, if you are working in a Windows 2025 Server Core server, where there is no Graphical User Interface.

You must be a Windows Server administrator to run these tasks successfully. Click the following link to learn how to run PowerShell as administrator, and how to run PowerShell as administrator in Server Core.

Step 01 – Run Get-PnpDevice PowerShell cmdlet to find information about the Plug and Play (PnP) devices, as shown below. In this example, I had selected a Gigabit Ethernet Network adapter device. Remaining output are truncated.


PS C:\jajish> Get-PnpDevice | Format-Table -Property FriendlyName,InstanceID



FriendlyName                                                  InstanceId
------------                                                  ----------
<command output truncated>

***** Gigabit Network Connection                    PCI\VEN_8086&DEV_10D3&SUBSYS_07D015AD&REV_00\000C29FFFF739D8400

<command output truncated>


 

From the output of the Get-PnpDevice PowerShell cmdlet, we can find the InstanceId of the devices, as shown in above output.

Step 02 – Now, run the Enable-PnpDevice PowerShell cmdlet, with the InstanceId found from the above Get-PnpDevice cmdlet output to enable the particular Plug and Play (PnP) device, as shown below. Make sure to enclose the InstanceId between single quots.



PS C:\jajish> Enable-PnpDevice -InstanceId 'PCI\VEN_8086&DEV_10D3&SUBSYS_07D015AD&REV_00\000C29FFFF739D8400'

Confirm
Are you sure you want to perform this action?
Performing the operation "Enable" on target "Win32_PnPEntity: <output omitted> Network Connection (DeviceID =
"PCI\VEN_8086&DEV_10D3&SUBSYS_07D015AD&R...)".
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "Y"): y
PS C:\jajish>


 

The device is enabled now, using the Enable-PnpDevice PowerShell cmdlet.

 

Written by Jajish Thomas.
Last updated on 14th July, 2024.

 

Related Tutorials
Introduction to Windows Server 2025
Minimum hardware requirements for Windows Server 2025
New features of Windows Server 2025
How to download Windows Server 2025 Preview iso file
How to install Windows Server 2025
Differences between Server Core and GUI (Desktop Experience)
Default GUI tools in Server Core
How to run PowerShell as administrator
How to run PowerShell as administrator in Server Core
How to find the PowerShell version in Server Core and Desktop experience
How to add Network icon to desktop in Windows Server 2025
How to add Computer (This PC) icon to desktop in Windows Server 2025
How to rename a computer using Windows Explorer
How to rename computer using "Rename-Computer" PowerShell Cmdlet
How to configure IPv4 Address in Windows Server 2025
How to configure IPv4 address in Windows Server 2025 using PowerShell Cmdlets
How to configure IPv6 Address in Windows Server 2025
How to configure IPv6 Address in Windows Server 2025 using PowerShell
What is MMC (Microsoft Management Console) and what are MMC snapin files
Add a snapin to MMC console
What are Roles and Features and difference between Roles and Features in Windows Server
Roles in Windows Server
Features in Windows Server
How to add Roles and Features in Windows Server
How to Remove Roles and Features in Windows Server
How to add Roles and Features using PowerShell
How to remove Roles and Features using PowerShell
Different types of computer hardware devices
What is a Driver Software
What is Device Manager and how to open Device Manager
What is Plug and Play (PnP)
How to scan for hardware changes using Device Manager and pnputil.exe
How to disable a device using Device Manager
How to disable a device using PowerShell Disable-PnpDevice Cmdlet
How to enable a device using PowerShell Enable-PnpDevice Cmdlet
How to update drivers using Device Manager
What is Driver Signing in Windows Operating Systems
What is Roll back of a driver and how to Roll Back a driver
How to uninstall a device using Device Manager
What are File attributes in Windows Operating Systems
attrib command in Windows
How to hide files and folders using Windows File Explorer
How to hide files and folders using attrib.exe command
How to view hidden files using Windows File Explorer
What are file name extensions
What are known file extensions and how to view known file extensions
How to associate a file name extension with an app
Hide or Show known file name extensions in Windows Server 2025
Hide or Show protected operating system files in Windows Server 2025
What are multi–user Operating Systems (OS) and multi–task Operating Systems (OS)
What are local user accounts and local groups in Windows Server
Different types of user accounts in Windows Server
How to create a local user in Windows Server
How to create a local user in Windows Server using New-LocalUser PowerShell cmdlet
How to force a local user to change password on next login
How to enable or disable a local user account
How to allow or prevent a local user to change password
What are Security Principals and SIDs
How to find SIDs of local user accounts