question

LevGorinshteyn-1213 avatar image
0 Votes"
LevGorinshteyn-1213 asked SSengupta-4080 answered

How programmatically disable the video card inserted into the PCI slot

Is it possible to programmatically disable the video card inserted into the PCI slot for a comparative assessment of the quality of the video card built into the motherboard?

windows-apiwindows-10-hardware-performancemicrosoft-graph-device-updates
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Any Updates sir?

0 Votes 0 ·
Castorix31 avatar image
1 Vote"
Castorix31 answered XiaopoYang-MSFT edited

Devices can be disabled with SetupDiSetClassInstallParams + SetupDiCallClassInstaller with DICS_DISABLE in x64


· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Docs-4663 avatar image
0 Votes"
Docs-4663 answered

Additional options that may enable you to compare the performance of each video:

a) Turn off using the respective control panels
Nvidia Optimus
AMD Switchable graphics

b) Open the BIOS > some computers have settings that can be turned on /off

c) Modify / uninstall drivers

.
.
.
.
.

Please remember to vote and to mark the replies as answers if they help.

On the bottom of each post there is:

Propose as answer = answered the question

On the left side of each post there is /\ with a number: click = a helpful post
.
.
.
.
.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

LimitlessTechnology-2700 avatar image
0 Votes"
LimitlessTechnology-2700 answered

Hello LevGorinshteyn

Yes, you can use the next:

Script for Disabling :
pnputil /disable-device "InstanceID"

Script for Enabling:
pnputil /enable-device "InstanceID"

To find instance ID of your discrete card you can access Device Manager in Windows and from the properties of the Adapter, Details Tab, the value is on the "Device instance path"



--If the reply is helpful, please Upvote and Accept as answer--

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

SSengupta-4080 avatar image
0 Votes"
SSengupta-4080 answered

Yes, there are PowerShell scripts available. You can kindly go through the following Microsoft reference:

PnPUtil Examples


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.