Set RDP screen size

Evgeniy Kosjakov's Avatar

Evgeniy Kosjakov

10 Dec, 2018 11:30 AM


I am running Selenium tests as part of CI via AppVeyor and I need to be able to set screen resolution for this tests.
I've tried to use this link:

But I am getting an error when ps script is running:

Set-ScreenResolution : The term 'Set-ScreenResolution' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is
correct and try again.

Please see the screenshot attached

Thank you

  1. 1 Posted by Evgeniy Kosjako... on 10 Dec, 2018 01:55 PM

    Evgeniy Kosjakov's Avatar
  2. Support Staff 2 Posted by Owen McDonnell on 10 Dec, 2018 10:53 PM

    Owen McDonnell's Avatar

    How did you try to use this script? Please share your configuration in yaml format.

  3. 3 Posted by Evgeniy Kosjako... on 11 Dec, 2018 06:51 AM

    Evgeniy Kosjakov's Avatar

    Hi Owen,

    I used it in before build section:

      - nuget restore JDI.Light/JDI.Light.sln
      - ps: iex ((new-object net.webclient).DownloadString(''))
      - ps: .\screen.ps1

    Full yaml file is available here:

    Thank you

  4. Support Staff 4 Posted by Owen McDonnell on 11 Dec, 2018 07:14 AM

    Owen McDonnell's Avatar

    You're downloading the wrong script (
    You need

  5. 5 Posted by Evgeniy Kosjako... on 11 Dec, 2018 07:56 AM

    Evgeniy Kosjakov's Avatar
  6. Evgeniy Kosjakov closed this discussion on 11 Dec, 2018 07:57 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac