bugfixing + tweaks
This commit is contained in:
parent
ebe03973e6
commit
60a5819ecb
@ -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 #######
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user