I accidentaly disabled my graphics card

Michlyper 21 Reputation points
2021-04-09T18:28:32.827+00:00

I have a windows virtual machine on Microsoft Azure and on device manager I've disabled the graphics card for the screen, and I cant do anything right now, the screen is black when I connect to the virtual machine

If someone could help me to fix it I would appreciate, thanks.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,129 questions
0 comments No comments
{count} votes

Accepted answer
  1. Andreas Baumgarten 96,361 Reputation points MVP
    2021-04-09T19:50:28.537+00:00

    Hi @Michlyper ,

    you can try this:

    86355-image.png

    Get-PnpDevice -FriendlyName "Microsoft Hyper-V Video"  |  Enable-PnpDevice -Confirm:$false  
       
    

    ----------

    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    Regards
    Andreas Baumgarten

    1 person found this answer helpful.

2 additional answers

Sort by: Most helpful
  1. Michlyper 21 Reputation points
    2021-04-10T12:32:29.88+00:00

    I checked the list of the Pnp devices and this is what I got: 86533-devices.txt

    and there isn't "Microsoft Hyper-V Video", so if you could tell me what is the right device I should make the command line on would be much appreciated

    @Andreas Baumgarten

    0 comments No comments

  2. Andreas Baumgarten 96,361 Reputation points MVP
    2021-04-10T13:23:56.533+00:00

    HI @Michlyper ,

    the Microsoft Hyper-V Video should be the "default" driver of a B2ms VM.
    Which VM SKU are you running?

    Based on the device list you attached I would try NVIDIA Tesla K80 .

    If I ran this on my VM (B2ms SKU/Size):

    Get-PnpDevice -class Display  
    

    I get this output:

    86541-image.png

    So I assume the class Display of the devices is reflecting the graphics card device.

    Based on this output and my assumption you can try this command as well:

    Get-PnpDevice -class Display  |  Enable-PnpDevice -Confirm:$false  
    

    ----------

    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    Regards
    Andreas Baumgarten

    0 comments No comments