Script to remove the unused devices not connected to the pc in Windows

Windows Device Manager only shows the devices that are connected to the computer and so if we want to remove an old device not more connected we should before connect it and then we could remove it.

Remove the old devices now unused is really important to have a clean computer. nella macchina.

If we don't have more a device we will not find it anymore in the list but we can use some command to remove it.

We have to start the Prompt cmd.exe as administrator and we can use these commands:

set devmgr_show_nonpresent_devices=1

start devmgmt.msc

In the window that will be opened in the Device Manager we have to enable the viewing of the hidden devices.

Only now we will have a list of every installed device and we can choose which of them remove.

 
To automate this, I created a script that will do it all alone, you only have to select "Show hidden devices";

 

The password to open the script is: Mentor

AttachmentSize
File gestione_risorse.exe23 KB
Section: 

Comments

Add new comment