Create a script to disable useless network protocols #40
This commit is contained in:
parent
d515e9044f
commit
707e3d718b
@ -30,6 +30,10 @@ move /Y %STARTMENU%\"Oracle VM VirtualBox\Oracle VM VirtualBox.lnk" %STARTMENU%
|
||||
echo removing VirtualBox startmenu folder ...
|
||||
rd /S /Q %STARTMENU%\"Oracle VM VirtualBox" 2>nul
|
||||
|
||||
echo disabling VirtualBox bridging protocol ...
|
||||
powershell -Command "Disable-NetAdapterBinding -Name '*' -ComponentID oracle_VBoxNetLwf"
|
||||
powershell -Command "Get-NetAdapterBinding -ComponentID oracle_VBoxNetLwf"
|
||||
|
||||
echo ####### %0 #######
|
||||
pause
|
||||
|
||||
|
@ -1,14 +0,0 @@
|
||||
@echo off
|
||||
|
||||
echo ####### %0 #######
|
||||
|
||||
echo disabling IPv6 ...
|
||||
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip6" ^
|
||||
/v DisabledComponents /t REG_DWORD /d 255 /f 1>nul
|
||||
|
||||
echo.
|
||||
echo +++ please reboot your machine +++
|
||||
echo.
|
||||
|
||||
echo ####### %0 #######
|
||||
|
@ -1,17 +1,17 @@
|
||||
# Install Windows Terminal ...
|
||||
|
||||
cd ..\software
|
||||
$MSIBUNDLE="windowsterminal-setup.msixbundle"
|
||||
if (! (Test-Path $MSIBUNDLE)) {
|
||||
write-host "ERROR: $MSIBUNDLE not found!"
|
||||
$MSIXBUNDLE="windowsterminal-setup.msixbundle"
|
||||
if (! (Test-Path $MSIXBUNDLE)) {
|
||||
write-host "ERROR: $MSIXBUNDLE not found!"
|
||||
exit 1
|
||||
}
|
||||
|
||||
write-host '#######',(split-path $PSCommandPath -Leaf),'#######'
|
||||
|
||||
$ErrorActionPreference = "SilentlyContinue"
|
||||
Add-AppXPackage -path "$MSIBUNDLE"
|
||||
DISM.EXE /Online /Add-ProvisionedAppxPackage /PackagePath:$MSIBUNDLE /SkipLicense
|
||||
Add-AppXPackage -path "$MSIXBUNDLE"
|
||||
DISM.EXE /Online /Add-ProvisionedAppxPackage /PackagePath:$MSIXBUNDLE /SkipLicense
|
||||
cd ..\scripts
|
||||
|
||||
write-host '#######',(split-path $PSCommandPath -Leaf),'#######'
|
||||
|
15
tools/disable-networkfeatures.ps1
Normal file
15
tools/disable-networkfeatures.ps1
Normal file
@ -0,0 +1,15 @@
|
||||
# REMOVE useless/not needed network features like IPv6 ...
|
||||
|
||||
$myBindingList = @("ms_tcpip6", "ms_pacer", "ms_lldp", "ms_server", "ms_implat", "ms_lltdio", "ms_rspndr")
|
||||
|
||||
write-host '#######',(split-path $PSCommandPath -Leaf),'#######'
|
||||
|
||||
$ErrorActionPreference = 'SilentlyContinue'
|
||||
|
||||
foreach ($myBinding in $myBindingList) {
|
||||
Disable-NetAdapterBinding -Name "*" -ComponentID $myBinding
|
||||
Get-NetAdapterBinding -ComponentID $myBinding
|
||||
}
|
||||
echo ""
|
||||
|
||||
write-host '#######',(split-path $PSCommandPath -Leaf),'#######'
|
@ -193,6 +193,9 @@ reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer" ^
|
||||
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer" ^
|
||||
/v "ShowFrequent" /t REG_DWORD /d 0 /f 1>nul
|
||||
|
||||
echo disabling unwanted NETWORK features ...
|
||||
powershell -command %TOOLS%\disable-networkfeatures.ps1
|
||||
|
||||
echo Restarting explorer ...
|
||||
taskkill /f /im explorer.exe 2>nul
|
||||
rem sleep 2 seconds ...
|
||||
|
Loading…
Reference in New Issue
Block a user