====== 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:\\
once.ins
==== once.ins ====
[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