Pages

Wednesday, December 4, 2013

Windows Server 2012 RD Web Access - Public Computer / Private Computer Radio Button

I get asked how to do this frequently. By default the RD Web Access website has the "this is a public computer" selected. But some of you want to make the "Private Computer" radio option be the default radio button that is selected.

In 2008 R2 you could do this by going through these steps (as outlined in this RDS Forum thread):

1. On the Web Access server, navigate to the following folder: %windir%\Web\RDWeb\Pages\en-US\

2.     Backup the file logon.aspx to another place.
3.     Right-click the login.aspx file and select Edit, the file will be open with Notepad or other default HTML editor.
4.     Use Find feature to find the following code snippet:
 
<label><input id=”rdoPblc” type=”radio” name=”MachineType” value=”public” class=”rdo” onclick”onClickSecurity()”  checked /></label>
 
and remove the checked from the code:
 
<label><input id=”rdoPblc” type=”radio” name=”MachineType” value=”public” class=”rdo” onclick”onClickSecurity()” /></label>
5.     Use Find feature to find the following code snippet:
 
<label><input id=”rdoPrvt” type=”radio” name=”MachineType” value=”private” class=”rdo” onclick”onClickSecurity()” /></label>
 
and add a checked properties in the label:
 
<label><input id=”rdoPrvt” type=”radio” name=”MachineType” value=”private” class=”rdo” onclick”onClickSecurity()” checked /></label>
6.     Save the change.
 
 
 
To do this for Windows 2012 RD Web Access, the process is different:
 
  1. Open C:\Windows\Web\RDWeb\Pages\renderscripts.js
  2. Remark out this line of code (by placing // in front of it) like this:
// document.getElementById("rdoPblc").checked = true;

Here's the thread with this data.

 

1 comment:

  1. This is a good article. Thanks for sharing
    http://jasaoutboundmalangjasaoutbound.blogspot.co.id
    https://www.youtube.com/watch?v=zxvdmRoUVcQ

    ReplyDelete