Reworked box configs for older versions

master
ckrivanek 2 years ago
parent a50b857c5e
commit a6007beec9

@ -74,10 +74,10 @@ netsh interface teredo set state disabled
netsh interface ipv6 6to4 set state state=disabled undoonstop=disabled
netsh interface ipv6 isatap set state state=disabled
call :Export_Configs
call :Damage_Reversal
ECHO Applying box specific rules...
call :%box%
call :Export_Configs
:: Tighten ccdc ACL
icacls %ccdcpath%\* /inheritancelevel:d >NUL
@ -357,8 +357,8 @@ EXIT /B 0
::************************************************Hardware******************************************************************************
:Hardware_Host_Check
set /p box="Please type your box as follows: [ ADDC SMTP2012 HardwareWin10]: "
(for %%a in (ADDC SMTP2012 HardwareWin10) do (
set /p box="Please type your box as follows: [ Hardware2012AD SMTP2012 HardwareWin10]: "
(for %%a in (Hardware2012AD SMTP2012 HardwareWin10) do (
if "%box%" == "%%a" (
GOTO :Passed
)
@ -394,6 +394,11 @@ Echo AD Clients is now %ADClients%
Echo DHCP Clients is now %DHCPClients%
EXIT /B 0
:Hardware2012AD
call :ADDC
call :SMBV1_Fix
EXIT /B 0
:SMTP2012
netsh advfirewall firewall add rule name="SMTP IN TCP" dir=in action=allow enable=yes profile=any localport=25 remoteip=any protocol=tcp
netsh advfirewall firewall add rule name="Web In" dir=any action=allow enable=yes profile=any localport=80 protocol=tcp
@ -432,8 +437,8 @@ EXIT /B 0
::************************************************Virtual******************************************************************************
:Virtual_Host_Check
set /p box="Please type your box as follows: [ ADDC Docker2016 VirtualWin10 Win8.1]: "
(for %%a in (ADDC Docker2016 VirtualWin10 Win8.1) do (
set /p box="Please type your box as follows: [ Virtual2008AD Docker2016 VirtualWin10 Win8.1]: "
(for %%a in (Virtual2008AD Docker2016 VirtualWin10 Win8.1) do (
if "%box%" == "%%a" (
if not "%box%" == "VirtualWin10" (
call :Set_Virtual_Internal_IPS
@ -502,6 +507,9 @@ Echo AD Clients is now %ADClients%
Echo DHCP Clients is now %DHCPClients%
EXIT /B 0
:Virtual2008AD
call :ADDC
EXIT /B 0
:Docker2016
::firewall_configs
@ -552,8 +560,8 @@ EXIT /B 0
::************************************************ESXI******************************************************************************
:ESXI_Host_Check
set /p box="Please type your box as follows: [ ADDC]: "
(for %%a in (ADDC) do (
set /p box="Please type your box as follows: [ ESXI2012AD]: "
(for %%a in (ESXI2012AD) do (
if "%box%" == "%%a" (
GOTO :Passed
)
@ -581,6 +589,11 @@ Echo ESXi pFsense is now %ESXipFsense%
Echo Internal is now %Internal%
EXIT /B 0
:ESXI2012AD
call :ADDC
call :SMBV1_Fix
EXIT /B 0
::************************************************General Host******************************************************************************
:ADDC
REG add "HKLM\SYSTEM\CurrentControlSet\Services\NTDS\Parameters" /v "TCP/IP Port" /t REG_DWORD /d 50243 /f
@ -659,7 +672,6 @@ net localgroup "Distributed COM Users" panuser /add
net localgroup "Event Log Readers" panuser /add
net localgroup "Remote Desktop Users" panuser /add
call :SMBV1_Fix
call :Config_NTP_NewWinVer
EXIT /B 0

Loading…
Cancel
Save