kevinoid / remove-nonpresent-devices

Script to remove non-present devices from a Windows computer system
MIT License
31 stars 10 forks source link

Windows 8 Support #7

Open Sstever47050 opened 11 years ago

Sstever47050 commented 11 years ago

Hi,

Firstly I would like to thank you for this contribution. I have been using if for some time to clean from Win 7.

I have now upgraded to windows 8 and I am finding that is not compatible. Is there any quick script updates that can be made to adjust for this?

Any help is greatly appreciated!

kevinoid commented 11 years ago

You're welcome. I'm afraid I have no idea, since I don't have access to a system running Windows 8. Since the script just invokes devcon.exe, the trick is finding a copy of devcon for Windows 8. There is likely one in the WDK for Windows 8, but I am not certain.

I'm curious if GhostBuster, which was brought up in #5, might work for your uses cases. I'm considering directing users to that software in the future.

Sstever47050 commented 11 years ago

Thanks for the quick response! I believe it may be in the script. I say this because I am using it to remove hidden USB drivers for mobile phones. I was originally using the attached bat to remove them, but I found that it left the Apple drivers. That is when I found your script and began using it to remove all drivers including the Apple. This was on a Win 7 environment. I have now went to Win 8 and when I call your script it removes nothing, however, when I use the attached batch it is still removes all of the non-Apple drivers. This leads me to believe that the devcon file is compatible, but the script may need some modification.

Best regards,

Steven Russo

Mobile: tel:%2B1-423-646-0031 +1-423-646-0031

Skype: Sstever47050

Email: mailto:Steve@pervacio.com Steve@pervacio.com

From: kevinoid [mailto:notifications@github.com] Sent: Saturday, February 23, 2013 4:48 PM To: kevinoid/remove-nonpresent-devices Cc: Sstever47050 Subject: Re: [remove-nonpresent-devices] Windows 8 Support (#7)

You're welcome. I'm afraid I have no idea, since I don't have access to a system running Windows 8. Since the script just invokes devcon.exe, the trick is finding a copy of devcon for Windows 8. There is likely one in the WDK for Windows 8 http://msdn.microsoft.com/en-us/windows/hardware/hh852362.aspx , but I am not certain.

I'm curious if GhostBuster http://ghostbuster.codeplex.com/ , which was brought up in #5 https://github.com/kevinoid/remove-nonpresent-devices/issues/5 , might work for your uses cases. I'm considering directing users to that software in the future.

— Reply to this email directly or view it on GitHub https://github.com/kevinoid/remove-nonpresent-devices/issues/7#issuecomment-13998539 .

https://github.com/notifications/beacon/10zSDRzEcUEWCQF00vgIOl23bgajRWMJmMuKOQWtWXLb76KLuN9zQJ_qrdFkR-o4.gif

zzeroo commented 11 years ago

Hi, looks like M$ publish the devcon source code for free. Look here: http://code.msdn.microsoft.com/windowshardware/DevCon-Sample-4e95d71c

I've absolute no glue about the MS-LPL License, but if we're lucky we can distribute a devcon binary with the scripts, for win8++ I mean.

kevinoid commented 11 years ago

Wow, that's a great find! That's a much more promising option than relying on the unspecified (and apparently somewhat volatile) output format of devcon. Thanks @zzeroo!

Also, any thoughts about whether GhostBuster is a viable alternative? I wouldn't mind re-implementing the script based on the devcon code, but I'd rather avoid the effort if there is already a workable solution. Thanks again!