Getting a second video monitor to display correctly after resuming Windows 10

I run windows 10 and once in a while my second video monitor will remain dark after coming out of a suspend mode (sometimes even just turning off the monitors and turning them back on!). I believe this is an issue with the NVidia video card I have installed since I can get the monitor to refresh by restarting the device (or rebooting the PC).

Here’s how I solve this issue …

1. On the Windows Desktop (or some other folder if you prefer) create a new file named ResetVideoAdaptor.bat. You can use Windows Notepad or any text editor to do this. Just make sure the file extension is named ‘.bat’ and not ‘.txt’
2. Add the following lines to your ResetVideoAdaptor.bat file (see additional steps ‘how to customize for your system’ below)

@echo off

REM see details on to set your specific adaptor id!

"C:\Program Files (x86)\Windows Kits\10\Tools\x64\devcon" disable %MY_VID_ADAPTOR_ID%
"C:\Program Files (x86)\Windows Kits\10\Tools\x64\devcon" enable %MY_VID_ADAPTOR_ID%

3. To use this batch file, whenever one of your video monitors goes dark, run ResetVideoAdaptor.bat as Administrator (right-click on ResetVideoAdaptor.bat and select “Run as Administrator”) and the video adaptor will be reset and the video monitor will come back to life.

How to customize for your system

You must have Microsoft’s devcon utility installed on your system for this to work. This utility is free and part of the Microsoft WDK which you can download here.

You must update the vendor id and device id in the ResetVideoAdaptor.bat file for your specific video card. You can find these values using Windows Device Manager. In the Windows Search bar type “Device Manager” and press Enter. You should see a window similar to this

Locate your video card under “display adaptors” and right-click and select Properties. From the Properties page select the Details tab and select “Hardware Ids” from the Property drop-down listbox. You should see something similar to this

Now jot-down the vendor id which will be the four digits after the “VIN_” tag (see example below) and the device id which will be the four digits after the “DEV_” tag (see example below).

Finally update your specific four digit vendor id and four digit device id in the ResetVideoAdapter.bat file. Search for “XXXX” and “YYYY” and replace those values with your specific id’s. As an example, for my video card I updated the line




Save your final changes to ResetVideoAdapter.bat and your done.

I hope this helps!

Fixing itunes hang on Windows 10

I have a multi-user configuration setup on my Windows 10 PC at home. My entire family can log into their own Windows account and have their own desktop and storage space. This works nicely but I noticed that iTunes is not very friendly with this multi-user configuration – iTunes hangs after sync’ing with an iPhone/ipad and can’t be used again until after a system reboot. Here’s how I resolved this issue: I created a batch file which terminates iTunes and creates a “clean” state …

  1. On the Desktop create a new file called ResetITunes.bat. You can use Windows Notepad or any text editor to do this.
  2. Add the following to the ResetITunes.bat file
@echo off

taskkill /F /IM itunes.exe
taskkill /F /IM distnoted.exe

3. Now, whenever you close iTunes, simply run ResetITunes.bat as Administrator (right-click and select “Run as Administrator”) and iTunes will terminate and be ready for the next user to sync their iPhone or iPad.

Hope this helps!