How to combine runas with pnputil?

johnaw

New member
Jul 16, 2025
1
0
1
i want to use runas to disable audio. Once i get this working i'll put it into a .bat file.
Reason: The laptop often or always doesn't recognize my 1/8th" headphone plug when i insert it. Disabling/Reenabling this driver forces the system to recognize the headphones

I'm on Win 11, but these commands go back decades.

This works from admin command line.
Code:
pnputil /disable-device "INTELAUDIO\FUNC_01&VEN_10EC&DEV_0295&SUBSYS_1028099F&REV_1000\5&1B578A47&0&0001"

You can see the driver get disabled in Device Manager. The path is "device instance path" in driver properties.

audio-driver.jpg device-instance.jpg

Now i'm trying to make it work with runas, but no joy. These don't work:

Code:
runas /savecred /user:BOOMBOX\BOOM pnputil /disable-device "INTELAUDIO\FUNC_01&VEN_10EC&DEV_0295&SUBSYS_1028099F&REV_1000\5&1B578A47&0&0001"
Code:
runas /user:BOOMBOX\BOOM "start \"\" pnputil /disable-device \"INTELAUDIO\FUNC_01&VEN_10EC&DEV_0295&SUBSYS_1028099F&REV_1000\5&1B578A47&0&0001\""
Code:
runas /user:BOOMBOX\BOOM "start """" pnputil /disable-device ""INTELAUDIO\FUNC_01&VEN_10EC&DEV_0295&SUBSYS_1028099F&REV_1000\5&1B578A47&0&0001"""
Code:
runas /user:BOOMBOX\BOOM "cmd pnputil /disable-device \"INTELAUDIO\FUNC_01&VEN_10EC&DEV_0295&SUBSYS_1028099F&REV_1000\5&1B578A47&0&0001\""

I don't care to use cmd or start, but i think it might be necessary. Would be great if they weren't necessary (use runas alone).

I looked here, but still stuck.

Any ideas?
Thx!

Also asked on tenforums and elevenforums.
 
Last edited:

Trending Posts

Members online

Forum statistics

Threads
339,603
Messages
2,262,633
Members
428,762
Latest member
santmarrys