Differences

This shows you the differences between two versions of the page.

Link to this comparison view

userspace:enable_rdp [2013/04/17 14:07] (current)
adlerweb created
Line 1: Line 1:
 +====== Disable Windows firewall and Enable RDP ======
 +
 +  * Tested with opsi 4.0.3.x
 +  * requiredWinstVersion >= 4.10.8.6
 +  * By   --- //​[[florian.knodt@finzelberg.de|adlerweb]] 2013/04/17 14:06//
 +
 +Tree:\\
 +<​code>​
 +once.ins
 +</​code>​
 +
 +==== once.ins ====
 +<code winst>
 +[Actions]
 +requiredWinstVersion >= "​4.10.8.6"​
 +
 +DefVar $LogDir$
 +DefVar $ProductId$  ​
 +DefVar $INST_SystemType$
 +
 +Set $INST_SystemType$ = GetSystemType
 +Set $LogDir$ = "​%SystemDrive%\tmp"​
 +
 +Set $ProductId$ ​      = "​Firewall"​
 +comment "​installing"​
 +
 +if ($INST_SystemType$ = "x86 System"​)
 + dosbatch_32
 + registry_rdp
 +endif
 +
 +if ($INST_SystemType$ = "64 Bit System"​)
 + dosbatch_64
 + registry_rdp
 +endif
 +
 +[dosbatch_32]
 +@echo off
 +net stop SharedAccess
 +
 +[dosbatch_64]
 +@echo off
 +net stop MpsSvc
 +
 +[registry_rdp]
 +openkey [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server]
 +set "​fDenyTSConnections"​ = REG_DWORD:0
 +</​code>​
 +
  

QR Code
QR Code userspace:enable_rdp (generated for current page)