Joanne Posted April 30, 2018 Posted April 30, 2018 I need a script to uninstall the sound drivers and then reinstall them. So after a bit of research I can see that I need to use the DevCon commands.... I need a bit of help.... I found a line that could help me, but then would need to rescan for PnP devices... wmic sysdriver where name ="High Definition Audio Device" delete Just need a shortcut for staff to click to sort out their HDMI audio and then I'm not up and down CONSTANTLY.
ShellfishClive Posted May 2, 2018 Posted May 2, 2018 If the machines are on Windows 10 then you could use something like this although this is heavily wildcarded so be careful as it will remove anything with audio in it: devcon remove *audio* devcon rescan Windows 10 will then scan the net for the drivers and install them or at least it seems to for me. Test this before you do anything, I will try to make a "safer" version when I get time.
Joanne Posted May 2, 2018 Author Posted May 2, 2018 devcon is not recognized as an internal or external command, operable program or batch file.
ShellfishClive Posted May 2, 2018 Posted May 2, 2018 Ahh sorry, its a bit of a pain as it's not built into Windows. It will need to be downloaded onto each machine or just drop the .exe somewhere then change directory to that machine. cd "path to devcon" devcon remove *audio* devcon rescan Here is a link on how to install it: Using DEVCON to manage devices and drivers Equally I can just upload the .exe for you. 1
Joanne Posted May 2, 2018 Author Posted May 2, 2018 Damn. The version I have downloaded is not compatible with the version of windows I am running. RIP this idea.
ShellfishClive Posted May 2, 2018 Posted May 2, 2018 (edited) What version of Windows are you using? It should support any version after Windows 2000. Edited May 2, 2018 by ShellfishClive
Joanne Posted May 2, 2018 Author Posted May 2, 2018 10 Edu. It did tell me that this was the 1803 version though.... and I'm not sure my machine has updated to that yet....
ShellfishClive Posted May 2, 2018 Posted May 2, 2018 On the machine I tested them on I was using 1709 EDU, I can upload the two .exes to my google drive if you want because Edugeek doesn't allow .exe to be attached to posts, however that might be against the rules? Let me know either way. I followed the instructions on the site that I linked you to get them. Download: https://www.microsoft.com/en-us/download/details.aspx?id=11800 find setuptools_x64fre_cab001.cab (64-bit) or setuptools_x86fre_cab001.cab (32-bit) in the \WDK folder use 7-Zip or similar software to extract _devcon.exe_00000 rename _devcon.exe_00000 to devcon.exe move devcon.exe to a folder that is listed in your PATH Then followed those in order and put devcon.exe in the root of C. 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now