added network protocol disabling ...
This commit is contained in:
parent
1758d18f3d
commit
961c8eaab4
@ -17,4 +17,7 @@ set localadmin_name=Local Administrator
|
|||||||
set localadmin_password=
|
set localadmin_password=
|
||||||
set start_desktopinfo=1
|
set start_desktopinfo=1
|
||||||
set use_nettime=1
|
set use_nettime=1
|
||||||
|
set bluetooth_networking=0
|
||||||
|
set ms_tcpip6=0
|
||||||
|
set ms_implat=0
|
||||||
|
set ms_server=0
|
||||||
|
@ -27,6 +27,10 @@ set seafile_domain=0
|
|||||||
set install_aerolite=0
|
set install_aerolite=0
|
||||||
set preserve_savedgames_folder=1
|
set preserve_savedgames_folder=1
|
||||||
set start_desktopinfo=0
|
set start_desktopinfo=0
|
||||||
|
set bluetooth_networking=false
|
||||||
|
set ms_tcpip6=0
|
||||||
|
set ms_implat=0
|
||||||
|
set ms_server=0
|
||||||
|
|
||||||
echo ####### %0 #######
|
echo ####### %0 #######
|
||||||
|
|
||||||
@ -405,6 +409,38 @@ if %ERRORLEVEL% == 0 (
|
|||||||
echo removing OneDrive update task ...
|
echo removing OneDrive update task ...
|
||||||
powershell -Command "Get-ScheduledTask | Where-Object {$_.Taskname -match 'OneDrive Standalone Update'} | Unregister-ScheduledTask -Confirm:$false"
|
powershell -Command "Get-ScheduledTask | Where-Object {$_.Taskname -match 'OneDrive Standalone Update'} | Unregister-ScheduledTask -Confirm:$false"
|
||||||
|
|
||||||
|
echo disabling some network cards and protocols ...
|
||||||
|
|
||||||
|
rem BlueTooth ...
|
||||||
|
powershell -Command "Disable-NetAdapter -Name 'Bluetooth Network Connection' -Confirm:$%bluetooth_networking%"
|
||||||
|
powershell -Command "Get-NetAdapter -Name 'Bluetooth Network Connection'"
|
||||||
|
|
||||||
|
rem IPv6 ...
|
||||||
|
if %ms_tcpip6% == 0 (
|
||||||
|
powershell -Command "Disable-NetAdapterBinding -Name '*' -ComponentID ms_tcpip6"
|
||||||
|
) else (
|
||||||
|
powershell -Command "Enable-NetAdapterBinding -Name '*' -ComponentID ms_tcpip6"
|
||||||
|
)
|
||||||
|
powershell -Command "Get-NetAdapterBinding -ComponentID ms_tcpip6"
|
||||||
|
|
||||||
|
|
||||||
|
rem File sharing ...
|
||||||
|
if %ms_server% == 0 (
|
||||||
|
powershell -Command "Disable-NetAdapterBinding -Name '*' -ComponentID ms_server"
|
||||||
|
) else (
|
||||||
|
powershell -Command "Enable-NetAdapterBinding -Name '*' -ComponentID ms_server"
|
||||||
|
)
|
||||||
|
powershell -Command "Get-NetAdapterBinding -ComponentID ms_server"
|
||||||
|
|
||||||
|
|
||||||
|
rem Multiplexor protocol ...
|
||||||
|
if %ms_implat% == 0 (
|
||||||
|
powershell -Command "Disable-NetAdapterBinding -Name '*' -ComponentID ms_implat"
|
||||||
|
) else (
|
||||||
|
powershell -Command "Enable-NetAdapterBinding -Name '*' -ComponentID ms_implat"
|
||||||
|
)
|
||||||
|
powershell -Command "Get-NetAdapterBinding -ComponentID ms_implat"
|
||||||
|
|
||||||
) else (
|
) else (
|
||||||
|
|
||||||
rem ===========
|
rem ===========
|
||||||
|
Loading…
Reference in New Issue
Block a user