@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
martes, 28 de febrero de 2012
Arrancar programa al iniciar windows en el registro del sistema
en un fichero cuyo nombre será por ejemplo prueba.cmd
@echo off
reg add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /f /v prueba /d "C:\WINDOWS\system32\alarm\Project1.exe"
@echo off
reg add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /f /v prueba /d "C:\WINDOWS\system32\alarm\Project1.exe"
Suscribirse a:
Comentarios (Atom)