mirror of
https://git.ecdf.ed.ac.uk/win_automation/windows-ansible.git
synced 2026-10-31 07:40:15 +00:00
rename file
This commit is contained in:
1 parent
36197c64c8
commit
afc4f48e83
2 files changed
+1
-1
No files matched your search
@@ -0,0 +1,57 @@
|
||||
---
|
||||
- name: RD Gateway setup
|
||||
tags: client_rdgw
|
||||
block:
|
||||
- name: Local policy for 'Remote Desktop Users' group to log on through Remote Desktop Services
|
||||
ansible.windows.win_user_right:
|
||||
name: SeRemoteInteractiveLogonRight
|
||||
users:
|
||||
- Remote Desktop Users
|
||||
action: add
|
||||
|
||||
# https://exchangepedia.com/2016/10/enable-remote-desktop-rdp-connections-for-admins-on-windows-server-2016.html
|
||||
- name: Registry edit - fDenyTSConnections
|
||||
ansible.windows.win_dsc:
|
||||
resource_name: Registry
|
||||
Ensure: Present
|
||||
Key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server
|
||||
ValueName: fDenyTSConnections
|
||||
ValueData: 0
|
||||
PsDscRunAsCredential_username: Administrator
|
||||
PsDscRunAsCredential_password: "{{ ansible_password }}"
|
||||
|
||||
- name: Registry edit - fSingleSessionPerUser
|
||||
ansible.windows.win_dsc:
|
||||
resource_name: Registry
|
||||
Ensure: Present
|
||||
Key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server
|
||||
ValueName: fSingleSessionPerUser
|
||||
ValueData: 1
|
||||
PsDscRunAsCredential_username: Administrator
|
||||
PsDscRunAsCredential_password: "{{ ansible_password }}"
|
||||
|
||||
- name: Registry edit - SecurityLayer
|
||||
ansible.windows.win_dsc:
|
||||
resource_name: Registry
|
||||
Ensure: Present
|
||||
Key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server
|
||||
ValueName: SecurityLayer
|
||||
ValueData: 0
|
||||
PsDscRunAsCredential_username: Administrator
|
||||
PsDscRunAsCredential_password: "{{ ansible_password }}"
|
||||
|
||||
- name: Registry edit - UserAuthentication
|
||||
ansible.windows.win_dsc:
|
||||
resource_name: Registry
|
||||
Ensure: Present
|
||||
Key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp
|
||||
ValueName: UserAuthentication
|
||||
ValueData: 0
|
||||
PsDscRunAsCredential_username: Administrator
|
||||
PsDscRunAsCredential_password: "{{ ansible_password }}"
|
||||
|
||||
- name: Enable NetFireWallRule - “Remote Desktop”
|
||||
tags: temp
|
||||
ansible.windows.win_powershell:
|
||||
script: |
|
||||
Enable-NetFirewallRule -DisplayGroup “Remote Desktop”
|
||||
Reference in new issue
Block a user