Szukaj na tym blogu

poniedziałek, 27 maja 2013

Disable some devices in Device manager using script - devcon

devcon.bat which contains:

if /i "%PROCESSOR_ARCHITECTURE%" EQU "x86" (
    xcopy .\i386\devcon.exe c:\windows\system32 /Y
    start /b /wait devcon.exe disable IDE\CDROM*
    start /b /wait devcon.exe disable HDAudio*
    start /b /wait devcon.exe disable ACPI\PNP0501\0
    goto Done
)
if /i "%PROCESSOR_ARCHITECTURE%" EQU "AMD64" (
    xcopy .\amd64\devcon.exe c:\windows\system32 /Y
    start /b /wait devcon.exe disable IDE\CDROM*
    start /b /wait devcon.exe disable HDAudio*
    start /b /wait devcon.exe disable ACPI\PNP0501\0
    goto Done
)
:Done

timeout 5

Brak komentarzy:

Prześlij komentarz