Ajout dela structure MDT dans Infra-LAB
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
@echo off
|
||||
rem Activation Bureau a distance
|
||||
|
||||
reg add "hklm\system\currentControlSet\Control\Terminal Server" /v "AllowTSConnections" /t REG_DWORD /d 0x1 /f >nul 2>&1
|
||||
reg add "hklm\system\currentControlSet\Control\Terminal Server" /v "fDenyTSConnections" /t REG_DWORD /d 0x0 /f >nul 2>&1
|
||||
sc config TermService start= auto >nul 2>&1
|
||||
net start Termservice >nul 2>&1
|
||||
netsh.exe advfirewall firewall add rule name="Bureau a distance (TCP)" dir=in action=allow description="Autorisation du RDP [TCP 3389]" enable=yes profile=private,domain,public localport=3389 protocol=tcp >nul 2>&1
|
||||
netsh.exe advfirewall firewall add rule name="Bureau a distance (UDP)" dir=in action=allow description="Autorisation du RDP [UDP 3389]" enable=yes profile=private,domain,public localport=3389 protocol=udp >nul 2>&1
|
||||
Reference in New Issue
Block a user