使用批处理修改注册表的键值

reg add "HKLM\system\currentcontrolset\control\storagedevicepolicies" /v writeprotect  /t reg_dword /d 1 /f

/v 设置键名(value)
/t 设置数据类型(type)
/d 设置添加的值(data)
/f 表示强制(forbidden)

posted @ 2011-08-31 12:45  coucar  阅读(2024)  评论(0编辑  收藏  举报