Quantcast
Channel: Hyper-V forum
Viewing all articles
Browse latest Browse all 19461

How I can change Display Resolution when use winrm?

$
0
0
I'm using Jenkins for run selenium tests on windows slave. Windows slave has windows 2016 OS. For launched slave instance I used ec2 plugin for Jenkins, it uses
winrm protocol for management our nodes. Test executed nice, but screenshot has resolution about 1036*660(I think). But server has resolution 1920*1020. I added auto-login for my user that use winrm via netplwiz. Didn't help me.
Also I tried: 1. Changed into windows register: DefaultSettings.XResolution,DefaultSettings.YResolution to 1902*1020;

I think that winrm executed all comands in windows console, because I was watching my browsers in task manager. But I didn't see they on desktope. 

When I tried added command for change display resolution befor tests i got bellow message:
C:\\Users\\jenkins>powershell -command 'Set-DisplayResolution -Width 1920 -Height 1080 -Force' 
setres will now attempt to apply the following display settings: 
Width: 1920
Height: 1080


The settings passed in could not be applied to the graphics device.
init script ran successfully
I want to make note, I'm using winrm protocol. I founded an interesting article https://serverfault.com/questions/803453/windows-server-2012-default-desktop-size
therefore, maybe reason is in display driver (Hyper-V Video)...

Viewing all articles
Browse latest Browse all 19461

Trending Articles