martes, 28 de febrero de 2012

Registro del sistema habilitar y deshabilitar cdrom y escritura en memorias usb

@echo off

// habilitar poder escribir en USB
reg add HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies /v WriteProtect /t reg_dword /d 0 /f

// habilitar cdrom
reg add HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Cdrom /v Start /t reg_dword /d 3 /f


//**************************************


// deshabilitar poder escribir en USB
reg add HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies /v WriteProtect /t reg_dword /d 1 /f

// deshabilitar cdrom
reg add HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Cdrom /v Start /t reg_dword /d 4 /f


No hay comentarios:

Publicar un comentario