HEX
Server: Apache
System: Linux server2.voipitup.com.au 4.18.0-553.109.1.lve.el8.x86_64 #1 SMP Thu Mar 5 20:23:46 UTC 2026 x86_64
User: posscale (1027)
PHP: 8.2.30
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //opt/saltstack/salt/lib/python3.10/site-packages/salt/states/__pycache__/rdp.cpython-310.pyc
o

�N�g!�@s dZdd�Zdd�Zdd�ZdS)z'
Manage RDP Service on Windows servers
cCsdtvrdSdS)z,
    Load only if network_win is loaded
    �
rdp.enableZrdp)Fzrdp module could not be loaded)�__salt__�rr�C/opt/saltstack/salt/lib/python3.10/site-packages/salt/states/rdp.py�__virtual__srcCsb|didd�}td�}|s+tdrd|d<d|d	<|Std
�|d<ddi|d<|Sd
|d	<|S)zr
    Enable the RDP service and make sure access to the RDP
    port is allowed in the firewall configuration
    T���name�result�changes�comment�
rdp.status�testNr	zRDP will be enabledrrzRDP was enabledr
zRDP is enabled�rZ__opts__�r�ret�statrrr�enableds
rcCsb|didd�}td�}|r+tdrd|d<d|d	<|Std
�|d<ddi|d<|Sd
|d	<|S)z!
    Disable the RDP service
    Trrrr
Nr	zRDP will be disabledrzrdp.disablezRDP was disabledr
zRDP is disabledrrrrr�disabled&s
rN)�__doc__rrrrrrr�<module>s