Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- color 0E
- (NET FILE||(PowerShell -NoP -C "Start-Process -FilePath '%0' -Verb RunAs")&(NET FILE||exit)) >nul 2>&1
- for /F "tokens=3 delims=: " %%H in ('sc qc "DsmSvc" ^| find "START_TYPE"') do set start_type=%%H
- if "%start_type%"=="DISABLED" (
- color 0C
- echo Automatic driver downloads are DISABLED.
- echo.
- echo Press any key to enable . . .
- pause >nul
- sc config "DsmSvc" start= demand >nul
- exit
- ) else (
- color 0A
- echo Automatic driver downloads are ENABLED.
- echo.
- echo Press any key to disable . . .
- pause >nul
- sc stop "DsmSvc" >nul 2>&1
- sc config "DsmSvc" start= disabled >nul
- exit
- )
- echo Error!
- pause
- exit
Add Comment
Please, Sign In to add comment