Oh my, it took me forever to figure this out... My Philips TV keeps changing its registration ID via UPnP and fills up my Windows device lists. Once I'd go into regedit and clean these up - but just so many. Now I've automated it.
FOR /F "tokens=2* delims= " %i in ('"pnputil /enum-devices /class {14b62f50-3f15-11dd-ae16-0800200c9a66} | findstr /c:"Instance ID:""') do pnputil /remove-device %j