Rdpwrap: Running RDPConf.exe non-interactively

Created on 21 Jan 2017  路  4Comments  路  Source: stascorp/rdpwrap

I am looking for a way to run RDPConf.exe non-interactively (i.e. through Ansible).
We need to install RDPWrap on a bunch of systems that we do not have access to.

Another solution is to reimplement exactly what RDPConf is doing within an Ansible playbook.
But I prefer to run the project config tool rather than start implementing something our own.

All 4 comments

See #153. RDPConf is just a graphical frontend on top of registry settings.

Every option can be changed from the command line by using registry editing tools (reg.exe).

I know, I implemented it last night in an Ansible playbook. Will share it when I get back home.

You can find this playbook at: https://github.com/crombeen/ansible/blob/master/rdesktop.yml

Here is the output on a system that was previously already configured:

[dag@moria crombeen]$ ansible-playbook rdesktop.yml -D -l computer10

PLAY [computers] *******************************************************************************

TASK [Ensure rdpwrap is installed] *************************************************************
ok: [computer10]

TASK [Update rdpwrap config] *******************************************************************
ok: [computer10]

TASK [Configure RDP firewall rule] *************************************************************
ok: [computer10]

TASK [Enable Terminal Server] ******************************************************************
ok: [computer10] => (item={u'data': 0, u'name': u'fDenyTSConnections'})
ok: [computer10] => (item={u'data': 0, u'name': u'fSingleSessionPerUser'})

TASK [Set RDP/tcp settings] ********************************************************************
ok: [computer10] => (item={u'data': 3389, u'name': u'PortNumber'})
ok: [computer10] => (item={u'data': 1, u'name': u'SecurityLayer'})
ok: [computer10] => (item={u'data': 0, u'name': u'UserAuthentication'})
ok: [computer10] => (item={u'data': 1, u'name': u'Shadow'})

TASK [Set Terminal Services Shadow] ************************************************************
ok: [computer10]

TASK [Set normal user selection on boot] *******************************************************
ok: [computer10]

PLAY RECAP *************************************************************************************
computer10                 : ok=7    changed=0    unreachable=0    failed=0   

Still think RDPConf.exe should have a non-interactive modus, but I won't be using it anymore ;-)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

apolyakov2017 picture apolyakov2017  路  4Comments

wanglulei picture wanglulei  路  4Comments

francescofalanga92 picture francescofalanga92  路  3Comments

mascarasnake66 picture mascarasnake66  路  4Comments

nick7inc picture nick7inc  路  5Comments