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.
You can see the driver get disabled in Device Manager. The path is "device instance path" in driver properties.

Now i'm trying to make it work with runas, but no joy. These don't work:
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.
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.


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: