Sorry That batch was missing a registry here is the updated.
@echo off
:: Check for Administrator privileges
net session >nul 2>&1
if %errorLevel% neq 0 (
echo This script requires Administrator privileges. Please right-click and select "Run as administrator."
pause
exit /b
)
...
Here is a workaround.
@echo off
:: Check for Administrator privileges
net session >nul 2>&1
if %errorLevel% neq 0 (
echo This script requires Administrator privileges. Please right-click and select "Run as administrator."
pause
exit /b
)
:: Enable SMBv1
echo Enabling SMBv1...
dism...