Remote Web Workplace connect to client computer feature may display black bars


When you use the Remote Web Workplace to connect to the client computer, the screen may show black vertical bars on both sides of the screen.


By default the screen resolution of the remote desktop connection is limited to 1600 x 1200.  If you are connecting from a computer using a higher screen resolution, than 1600 x 1200, you will see black vertical bars on the sides of the screen.


You can use the following steps to edit the configuration file for Remote Web Workplace and remove the screen resolution limitation.

a.  Make a backup copy of the following file  C:\Program Files\Windows Small Business Server\Bin\webapp\Remote\tsweb.aspx

b.  Open notepad in elevated mode and open the file C:\Program Files\Windows Small Business Server\Bin\webapp\Remote\tsweb.aspx

c.  Find the below content:          

            if ( screen.width > 1600 ) then
                sresWidth = 1600
                sresWidth = screen.width
            end if
            if ( screen.height > 1200 ) then
                sresHeight = 1200
                sresHeight = screen.height
            end if

c. Replace the entire section listed above with the following two lines: 
                sresWidth = screen.width
                sresHeight = screen.height

This section of the file should like the following after you edit it:

                MsRdpClient.FullScreen = TRUE
                sresWidth = screen.width
                sresHeight = screen.height
                resWidth  = 1
                resHeight = 1

e.  Save the file

f.  Login to Remote Web Workplace and Connect to the Client Computer to test the functionality.

Note:  The maximum screen size limit was put into place to enable older clients to connect without an issue.  The version 5.x RDP client is limited to a maximum screen size of 1600 x 1200.  The RDP 5.x client is included with Windows XP SP2.  Windows XP SP3, Vista and Windows 7 all use the newer version 6 client and they can handle the higher screen resolution.  If you remove the screen resolution limitation and attempt to connect from a client running the RDP version 5 client with a screen resolution higher than 1600 x 1200, the connection attempt will probably fail.