cancel
Showing results for 
Search instead for 
Did you mean: 

Screen Resolution issue

SunHung1
Level 4

The screen resolution sometimes too small that the automated process will have error:

35660.png
I tried to use the utility in DX (Blue Prism Digital Exchange) but still cannot change the screen resolution:
Blue Prism Digital Exchange

Tried to contact DX support and replied them that 

There is no option for me to change the resolution there, not sure if it is because it is a RDP session or other reasons, pending for DX support reply:

35661.png


@ewilson , FYI

31 REPLIES 31

HI Sun Hung - Infrastructure team( Who managed vm's) might blocked to update the settings.  you might need to reach internal team for that.

Did you get chance to use this  VBO where  the screen resolution settings are enabled? if this is not working then let me know.

-----------------------
If I answered your query. Please mark it as the Best Answer

Harish Mogulluri

ewilson
Staff
Staff

Hello @SunHung1 

Are you running the Blue Prism process directly on the machine that you're RDP'd into, or are you trying to run it on a separate machine and automate something on the other machine via the RDP connection?

RDP does not allow you to change the resolution of a remote machine. That's not an issue with the Utility - Environment VBO, but a decision made by Microsoft in how the RDP protocol will work or not work in this case.

Just to be clear, you can usually change the resolution of the RDP session itself via the Remote Desktop Client UI. I believe you right click on the saved connection details and there's an option to adjust the resolution. However, as far as I know you can't change the resolution of the remote machine via an RDP session.

Cheers,
Eric

SunHung1
Level 4

Thanks both.
I tried to run the process and please find below session log:
35633.png
So we can see the "Success" is False.

The PC is far away so I tried to use RDP to check.
If visit physically, the display resolution setting is available:
35634.png

ewilson
Staff
Staff

@SunHung1 

What O/S is the remote machine running?

Cheers,
Eric

SunHung1
Level 4

Hi @ewilson , it is Windows 10, thanks. 

35635.png

ewilson
Staff
Staff

@SunHung1 

Very strange behavior. This logic has been tested in Windows 10 without issue. It sounds more like there's something within the local configuration of the machine that's preventing the resolution changes. Can you log into the machine directly using the same account the digital worker would use? If so, it would be good to see if there's a Local Group Policy definition that's locked the display to whatever the standard resolution is. 

If you go to the Start menu and type gpedit.msc and the <Enter>, that will bring up the Local Group Policy Editor. From there, you want to go to Local Computer Policy -> User Configuration -> Administrative Templates -> Control Panel -> Display. In the window on the right check the Disable the Display Control Panel setting. Is it enabled?

35636.png

Cheers,

Eric

SunHung1
Level 4

Hi @Eric Wilson , thanks for your reply.

It is "Not configured", same as your screenshot:

35639.png

ewilson
Staff
Staff

@SunHung1 

I've attached a debug version of the Utility - Environment VBO. Please import this and run your test again. This version includes an additional output parameter from the Set Screen Resolution action called DISP Code. This is a numeric value that corresponds to the return code from the system function we call to make the resolution change. Possible return values are:

DISP_CHANGE_SUCCESSFUL = 0
DISP_CHANGE_RESTART = 1
DISP_CHANGE_FAILED = -1
DISP_CHANGE_BADMODE = -2
DISP_CHANGE_NOTUPDATED = -3
DISP_CHANGE_BADFLAGS = -4
DISP_CHANGE_BADPARAM = -5

Lets see what code the O/S is throwing.

Cheers,

Eric

SunHung1
Level 4

Thanks @ewilson , return code "-2" found:

35640.png