Need help in setting up an active RDP session

Welcome Forums General PowerShell Q&A Need help in setting up an active RDP session

This topic contains 1 reply, has 2 voices, and was last updated by

Senior Moderator
1 month ago.

  • Author
  • #172045

    Topics: 5
    Replies: 6
    Points: 67
    Rank: Member

    Hi All,


    I am facing an issue in my office hope someone can help me out with this.

    we have Hyper-V server:deployed in 8 node cluster.


    Our testing team runs UI based automation script (which requires 1920×1080 display resolution & Active RDP Session)


    The problem is

    1)Hyper-V doesn't support 1920×1080 display resolution & it can only support till 1600×1200.

    2) if i use RDP i am getting 1920×1080 resolution but if i disconnect the RDP session Script execution is failing. So, i have used a 'tscon' powershell  script & scheduled task in windows task scheduler to trigger the script on disconnection of RDP.


    The script is keeping RDP Session alive but as soon as RDP disconnects resolution is going back to 1600×1200 & UI automation script is failing..


    Tried to use VNC but no luck because it is using Hyper-V display resolution...


    Is there any way to resolve this issue?


  • #172132

    Senior Moderator
    Topics: 8
    Replies: 1041
    Points: 3,439
    Helping Hand
    Rank: Community Hero

    I see this not as something related to PowerShell. You could try setting the VM's default resolution to 1920×1080.
    You may probably ask this question in as well.

You must be logged in to reply to this topic.