Originally posted by HUNRYBECKY at 2007-2-1 10:00 AM:
不过用起来有点问题,显示错误:命令行参数太多,希望修正。
我用的是Win2003。
reg query 支持这些参数,老版本的没有那么多的。<img src="images/smilies/face-sad.png" align="absmiddle" border="0">
REG QUERY KeyName | /ve]
]
KeyName FullKey
Machine - 远程机器名称,省略当前机器的默认值。在远程机器上
只有 HKLM 和 HKU 可用。
FullKey - 以 ROOTKEY\SubKey 名称形式
ROOTKEY -
SubKey - 在选择的 ROOTKEY 下的注册表项的全名
/v 具体的注册表项值的查询。
如果省略,会查询该项的所有值。
只有与 /f 开关一起指定的情况下,此开关的参数才是可选的。它指定
只在值名称中搜索。
/ve 查询默认值或空值名称(默认)。
/s 循环查询所有子项和值(如 dir /s)。
/se 为 REG_MULTI_SZ 在数据字符串中指定分隔符(长度只为 1 个字符)。
默认分隔符为 "\0"。
/f 指定搜索的数据或模式。
如果字符串包含空格,请使用双引号。默认为 "*"。
/k 指定只在项名称中搜索。
/d 指定只在数据中搜索。
/c 指定搜索时区分大小写。
默认搜索为不区分大小写。
/e 指定只返回完全匹配。
默认是返回所有匹配。
/t 指定注册表值数据类型。
有效的值是:
REG_SZ, REG_MULTI_SZ, REG_EXPAND_SZ,
REG_DWORD, REG_BINARY, REG_NONE
默认为所有类型。
/z 详细: 显示值名称类型的数字等值。
Originally posted by HUNRYBECKY at 2007-2-1 10:00 AM:
But there are some problems when using it, and an error is displayed: Too many command line arguments, hope to correct.
I am using Win2003.
REG QUERY supports these parameters, and older versions do not have so many. :(
REG QUERY KeyName | /ve]
]
KeyName FullKey
Machine - Name of the remote machine, the default value for the current machine is omitted. Only HKLM and HKU are available on the remote machine.
FullKey - In the form of ROOTKEY\SubKey name
ROOTKEY -
SubKey - The full name of the registry entry under the selected ROOTKEY
/v Query for a specific registry entry value.
If omitted, all values of the entry will be queried.
Only when specified together with the /f switch, the parameter of this switch is optional. It specifies
Search only in the value name.
/ve Query the default value or empty value name (default).
/s Recursively query all subkeys and values (like dir /s).
/se Specify the separator in the data string for REG_MULTI_SZ (length is only 1 character).
The default separator is "\0".
/f Specify the data or pattern to search.
If the string contains spaces, use double quotes. The default is "*".
/k Specify to search only in the item name.
/d Specify to search only in the data.
/c Specify to be case-sensitive when searching.
The default search is case-insensitive.
/e Specify to return only exact matches.
By default, all matches are returned.
/t Specify the registry value data type.
Valid values are:
REG_SZ, REG_MULTI_SZ, REG_EXPAND_SZ,
REG_DWORD, REG_BINARY, REG_NONE
The default is all types.
/z Detailed: Display the numeric equivalent of the value name type.