bugfixing + tweaks

This commit is contained in:
Michael H.G. Schmidt 2023-02-08 14:34:17 +01:00
parent ebe03973e6
commit 60a5819ecb
2 changed files with 13 additions and 2 deletions

View File

@ -32,8 +32,16 @@ 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"
echo enabling VirtualBox bridging protocol ...
powershell -Command "Enable-NetAdapterBinding -Name '*' -ComponentID oracle_VBoxNetLwf"
echo disabling VirtualBox bridging protocol on Host-Only network adapter ...
powershell -Command "Disable-NetAdapterBinding -Name 'VirtualBox Host-Only Network' -ComponentID oracle_VBoxNetLwf"
echo disabling VirtualBox Host-Only network adapter ...
powershell -Command "Disable-NetAdapter -Name 'VirtualBox Host-Only Network' -Confirm:$false"
echo showing network state:
powershell -Command "Get-NetAdapterBinding -ComponentID oracle_VBoxNetLwf"
echo ####### %0 #######

View File

@ -51,6 +51,9 @@ powershell -Command "$Printer = Get-CimInstance -Class Win32_Printer -Filter \"N
Write-Host $Printer ; ^
Invoke-CimMethod -InputObject $Printer -MethodName SetDefaultPrinter"
echo disabling DUPLEX mode ...
powershell -Command "Set-PrintConfiguration -PrinterName '%PRINTERNAME%' -DuplexingMode OneSided -Verbose"
GOTO END
:USAGE