驱动程序验证程序命令语法Driver Verifier Command Syntax

在命令提示符窗口中运行验证程序实用程序时,将使用以下语法。The following syntax is used when running the Verifier utility in a Command Prompt window.

您可以在同一单行上键入几个选项。You can type several options on the same single line. 例如:For example:

verifier /flags 7 /driver beep.sys disksdd.sys

Windows 10Windows 10

可以将 /volatile 参数与一些 Driver Verifier /flags 选项和 with /标准 一起使用。You can use the /volatile parameter with some Driver Verifier /flags options and with /standard. 不能将 /volatile/flags 选项一起使用,以进行 DDI 相容性检查Power Framework 延迟模糊处理、 Storport 验证SCSI 验证You cannot use /volatile with the /flags options for DDI compliance checking, Power Framework Delay Fuzzing, Storport Verification, or SCSI Verification. 有关详细信息,请参阅 使用可变设置For details, see Using Volatile Settings.

  verifier /standard /all
  verifier /standard /driver NAME [NAME ...]
  verifier {/ruleclasses | /rc} <options> [<ruleclass_1> <ruleclass_2> ...] /all
  verifier /flags <options> /all
  verifier /flags <options> /driver NAME [NAME ...]
  verifier /rules [OPTION ...]
  verifier /query
  verifier /querysettings
  verifier /bootmode [persistent | disableafterfail | oneboot]
  verifier /reset
  verifier /faults [Probability] [PoolTags] [Applications] [DelayMins]
  verifier /faultssystematic [OPTION ...] 
  verifier /log LOG_FILE_NAME [/interval SECONDS]
  verifier /volatile /flags <options>
  verifier /volatile /adddriver NAME [NAME ...]
  verifier /volatile /removedriver NAME [NAME ...]
  verifier /volatile /faults [Probability] [PoolTags] [Applications] [DelayMins]
  verifier /domain <types> <options> /driver ... [/logging | /livedump]
  verifier /logging
  verifier /livedump
  verifier /?
  verifier /help

Windows 8.1Windows 8.1

可以将 /volatile 参数与一些 Driver Verifier /flags 选项和 with /标准 一起使用。You can use the /volatile parameter with some Driver Verifier /flags options and with /standard. 不能将 /volatile/flags 选项一起使用,以进行 DDI 相容性检查Power Framework 延迟模糊处理、 Storport 验证SCSI 验证You cannot use /volatile with the /flags options for DDI compliance checking, Power Framework Delay Fuzzing, Storport Verification, or SCSI Verification. 有关详细信息,请参阅 使用可变设置For details, see Using Volatile Settings.

  verifier /standard /all
  verifier /standard /driver NAME [NAME ...]
  verifier /flags <options> /all
  verifier /flags <options> /driver NAME [NAME ...]
  verifier /rules [OPTION ...]
  verifier /faults [Probability] [PoolTags] [Applications] [DelayMins]
  verifier /faultssystematic [OPTION ...]  
  verifier /log LOG_FILE_NAME [/interval SECONDS]
  verifier /query
  verifier /querysettings
  verifier /bootmode [persistent | disableafterfail | oneboot]
  verifier /reset
  verifier /volatile /flags <options>
  verifier /volatile /adddriver NAME [NAME ...]
  verifier /volatile /removedriver NAME [NAME ...]
  verifier /volatile /faults [Probability] [PoolTags] [Applications] [DelayMins]
  verifier /?

Windows 8、Windows 7、Windows Vista 语法Windows 8, Windows 7, Windows Vista Syntax

可以将 /volatile 参数与一些 Driver Verifier /flags 选项和 with /标准 一起使用。You can use the /volatile parameter with some Driver Verifier /flags options and with /standard. 不能将 /volatile 与/flags 选项配合使用来进行 DDI 相容性检查Power Framework 延迟模糊处理、 Storport 验证SCSI 验证 或使用 /diskYou cannot use /volatile with the /flags options for DDI compliance checking, Power Framework Delay Fuzzing, Storport Verification, SCSI Verification or with /disk. 有关详细信息,请参阅 使用可变设置For details, see Using Volatile Settings.

verifier [/volatile] [/standard | /flags Options ] [ /all | /driver DriverList ]
verifier /volatile /faults [Probability PoolTags Applications DelayMins] /driver DriverList
verifier /volatile {/adddriver | /removedriver} DriverList
verifier /reset 
verifier /querysettings 
verifier /query 
verifier /log LogFileName [/interval Seconds] 
verifier /? 

Windows Server 2003 语法Windows Server 2003 Syntax

verifier [/disk] [ /standard | /flags Options ] [ /all | /driver DriverList ] 
verifier /volatile /flags VolatileOptions 
verifier /volatile {/adddriver | /removedriver} DriverList
verifier /reset 
verifier /querysettings 
verifier /query 
verifier /log LogFileName [/interval Seconds] 
verifier /? 

参数Parameters

验证器 Command-Line 语法Verifier Command-Line Syntax

/all /all
指示驱动程序验证器在下一次启动之后验证所有已安装的驱动程序。Directs Driver Verifier to verify all installed drivers after the next boot.

/bootmode 模式 /bootmode mode
控制在重新启动后是否启用驱动程序验证程序的设置。Controls whether the settings for Driver Verifier are enabled after a reboot. 若要设置或更改此选项,必须重新启动计算机。To set or change this option, you must reboot the computer.

启动 模式Boot mode 说明Description

persistent

确保 (在多次重新启动时仍然有效) 驱动程序验证程序设置。Ensures that the Driver Verifier settings persist (stay in effect) over many reboots. 此为默认设置。This is the default setting.

disableafterfaildisableafterfail

如果 Windows 无法启动,则此设置将禁用 Driver Verifier 以便以后重新启动。If Windows fails to start, this setting disables Driver Verifier for subsequent reboots.

onebootoneboot

仅在计算机下次启动时启用驱动程序验证程序设置。Only enables the Driver Verifier settings for the next time the computer starts. 驱动程序验证程序被禁用,以后重新启动。Driver Verifier is disabled for subsequent reboots.

resetonunusualshutdownresetonunusualshutdown

Windows 10 中引入的 (,版本 1709) 驱动程序验证程序将一直保留,直到发生异常关闭。(Introduced in Windows 10, build 1709) Driver Verifier will persist until an unusual shutdown occurs. 可以使用它的缩写 "rous"Its abbrevation, 'rous', can be used.

/disk /disk
Windows Server 2003 中引入的 (。(Introduced in Windows Server 2003. 在 windows 7 和更高版本的 Windows 中不可用。 ) 在下一次启动后激活 磁盘完整性检查 选项。Not available in Windows 7 and later versions of Windows.) Activates the Disk Integrity Checking option after the next boot. 不能在任何 Windows 版本上将 /disk/volatile 一起使用。You cannot use /disk with /volatile on any version of Windows.

/Driver DriverList /driver DriverList
指定要验证的一个或多个驱动程序。Specifies one or more drivers that will be verified. DriverList 是按二进制名称列出的驱动程序列表,如 Driver.sys。DriverList is a list of drivers by binary name, such as Driver.sys. 使用空格分隔每个驱动程序名称。Use a space to separate each driver name. 不支持通配符值,例如 * ,sys.databases。Wildcard values, such as n*.sys, are not supported.

/Driver.exclude DriverList /driver.exclude DriverList
指定将从验证中排除的一个或多个驱动程序。Specifies one or more drivers that will be excluded from verification. 仅当选择了所有驱动程序进行验证时,此参数才适用。This parameter is applicable only if all drivers are selected for verification. DriverList 是按二进制名称列出的驱动程序列表,如 Driver.sys。DriverList is a list of drivers by binary name, such as Driver.sys. 使用空格分隔每个驱动程序名称。Use a space to separate each driver name. 不支持通配符值,例如 * ,sys.databases。Wildcard values, such as n*.sys, are not supported.

/faults /faults
启用驱动程序验证器中的低资源模拟功能。Enables the Low Resources Simulation feature in Driver Verifier. 可以使用 /faults 来代替 /flags 0x4You can use /faults in place of /flags 0x4. 但是,不能将 /flags 0x4/faults 子参数一起使用。However, you cannot use /flags 0x4 with the /faults subparameters.

你可以使用以下子参数的 /faults 参数配置低资源模拟。You can use the following subparameters of the /faults parameter to configure Low Resources Simulation.

子参数Subparameter 说明Description

概率Probability

指定驱动程序验证程序在给定分配中将失败的概率。Specifies the probability that Driver Verifier will fail a given allocation. 键入) 十进制或十六进制形式的数字 (,表示驱动程序验证程序在分配失败的几率(10000)。Type a number (in decimal or hexadecimal) to represent the number of chances in 10,000 that Driver Verifier will fail the allocation. 默认值600表示600/10000 或6%。The default value, 600, means 600/10000 or 6%.

池标记Pool Tags

限制驱动程序验证程序无法通过指定的池标记分配的分配数。Limits the allocations that Driver Verifier can fail to allocations with the specified pool tags. 您可以使用 (\*) 通配符来表示多个池标记。You can use a wildcard character (\*) to represent multiple pool tags. 若要列出多个池标记,请用空格分隔标记。To list multiple pool tags, separate the tags with spaces. 默认情况下,所有分配都可能失败。By default, all allocations can fail.

应用程序Applications

限制驱动程序验证程序可为指定程序分配的分配数。Limits the allocations that Driver Verifier can fail to allocations for the specified program. 键入可执行文件的名称。Type the name of an executable file. 若要列出程序,请用空格分隔程序名称。To list programs, separate the program names with spaces. 默认情况下,所有分配都可能失败。By default, all allocations can fail.

DelayMinsDelayMins

指定引导后的分钟数,在此期间,驱动程序验证程序不会有意失败任何分配。Specifies the number of minutes after booting during which Driver Verifier does not intentionally fail any allocations. 此延迟允许在测试开始之前加载驱动程序并使系统稳定。This delay allows the drivers to load and the system to stabilize before the test begins. 以十进制或十六进制) 键入数字 (。Type a number (in decimal or hexadecimal). 默认值为 7 (分钟) 。The default value is 7 (minutes).

/faultssystematic/faultssystematic
指定 系统低资源模拟的选项。Specifies the options for Systematic low resources simulation. 使用 0x40000 标志选择 "系统低资源" 模拟选项。Use the 0x40000 flag to select Systematic low resources simulation option.

OPTIONOPTION 说明Description

enableboottimeenableboottime

在计算机重新启动时启用错误注入。Enables fault injections across computer reboots.

disableboottimedisableboottime

禁用跨计算机重启的错误注入 (这是默认设置) 。Disables fault injections across computer reboots (this is the default setting).

recordboottimerecordboottime

在计算机重新启动 ,在 "if" 模式下启用错误注入。Enables fault injections in what if mode across computer reboots.

resetboottimeresetboottime

禁用跨计算机重启的错误注入,并清除堆栈排除列表。Disables fault injections across computer reboots and clears the stack exclusion list.

enableruntimeenableruntime

动态启用错误注入。Dynamically enables fault injections.

disableruntimedisableruntime

动态禁用错误注入。Dynamically disables fault injections.

recordruntimerecordruntime

if 模式下动态启用错误注入。Dynamically enables fault injections in what if mode.

resetruntimeresetruntime

动态禁用错误注入,并清除以前出错的堆栈列表。Dynamically disables fault injections and clears the previously faulted stack list.

querystatisticsquerystatistics

显示当前错误注入统计信息。Shows the current fault injection statistics.

incrementcounterincrementcounter

递增用于标识注入错误的时间的测试通过计数器。Increments the test pass counter used to identify when a fault was injected.

getstackid 计数器getstackid COUNTER

检索指定的注入堆栈标识符。Retrieves the indicated injected stack identifier.

excludestack STACKIDexcludestack STACKID

从错误注入中排除堆栈。Excludes the stack from fault injection.

/Flags 选项 /flags Options
在下一次重新启动后激活指定的选项。Activates the specified options after the next reboot. 可以在十进制或十六进制 (中以 0x 前缀) 格式输入此数字。This number can be entered in decimal or in hexadecimal (with an 0x prefix) format. 允许使用下列值的任意组合。Any combination of the following values is allowed.

小数Decimal 十六进制Hexadecimal 标准设置Standard Setting 选项Option

11

0x1 (位 0) 0x1 (bit 0)

XX

特殊池Special Pool

22

0x2 (位 1) 0x2 (bit 1)

XX

强制 IRQL 检查Force IRQL Checking

44

0x4 (位 2) 0x4 (bit 2)

资源不足模拟Low Resources Simulation

88

0x8 (位 3) 0x8 (bit 3)

XX

池跟踪Pool Tracking

1616

0x10 (位 4) 0x10 (bit 4)

XX

I/O 验证I/O Verification

3232

0x20 (位 5) 0x20 (bit 5)

XX

Windows XP 和更高版本 (死锁检测) Deadlock Detection (Windows XP and later)

6464

0x40 (位 6) 0x40 (bit 6)

(Windows XP 和更高版本) (在 Windows 7 和更高版本中增强的 I/o 验证,则当你选择 "i/o 验证" 时,此选项会自动激活) Enhanced I/O Verification (Windows XP and later) (In Windows 7 and later, this option is automatically activated when you select I/O Verification)

128128

0x80 (位 7) 0x80 (bit 7)

XX

DMA 验证 (Windows XP 和更高版本) DMA Verification (Windows XP and later)

256256

0x100 (位 8) 0x100 (bit 8)

XX

Windows XP 和更高版本 (安全检查) Security Checks (Windows XP and later)

512512

0x200 (位 9) 0x200 (bit 9)

在 Windows Vista 和更高版本 (强制挂起的 I/o 请求) Force Pending I/O Requests (Windows Vista and later)

10241024

0x400 (位 10) 0x400 (bit 10)

(Windows Server 2003 和更高版本的IRP 日志记录) IRP Logging (Windows Server 2003 and later)

20482048

0x800 (位 11) 0x800 (bit 11)

XX

(Windows Vista 和更高版本的其他检查) Miscellaneous Checks (Windows Vista and later)

81928192

0x2000 (位 13) 0x2000 (bit 13)

从 Windows 8 开始的堆栈 (的固定 MDL 检查) Invariant MDL Checking for Stack (Starting with Windows 8)

1638416384

0x4000 (位 14) 0x4000 (bit 14)

从 Windows 8 开始,驱动 (的固定 MDL 检查) Invariant MDL Checking for Driver (Starting with Windows 8)

3276832768

0x8000 (位 15) 0x8000 (bit 15)

从 Windows 8) 开始使用的Power Framework 延迟模糊处理 ( (Windows 10 有问必答 preview 版本19042及更高版本中已弃用) Power Framework Delay Fuzzing (Starting with Windows 8) (Deprecated in Windows 10 Insider Preview Build 19042 and above)

6553665536

0x10000 (位 16) 0x10000 (bit 16)

从 Windows 10 开始 (端口/微型端口接口检查) Port/miniport interface checking (Starting with Windows 10)

131072131072

0x20000 (位 17) 0x20000 (bit 17)

XX

从 Windows 8 开始 (DDI 相容性检查) DDI compliance checking (Starting with Windows 8)

262144262144

0x40000 (位 18) 0x40000 (bit 18)

Windows 10 Insider Preview 版本19042及更) 高版本中不推荐使用 Windows 8.1) 的系统低资源模拟 ( (Systematic low resources simulation (Starting with Windows 8.1) (Deprecated in Windows 10 Insider Preview Build 19042 and above)

524288524288

0x80000 (位 19) 0x80000 (bit 19)

DDI 相容性检查 () 在 Windows 10 有问必答 preview 版本19042及更高版本中不推荐使用的Windows 8.1) (的其他 () DDI compliance checking (additional) (Starting with Windows 8.1) (Deprecated in Windows 10 Insider Preview Build 19042 and above)

20971522097152

0x200000 (位 21) 0x200000 (bit 21)

从 Windows 8.1 开始 (NDIS/WIFI 验证) NDIS/WIFI verification (Starting with Windows 8.1)

83886088388608

0x800000 (位 23) 0x800000 (bit 23)

从 Windows 8.1) 开始 (内核同步延迟模糊处理,Windows 10 有问必答 preview 版本19042及更高版本中已弃用 () Kernel synchronization delay fuzzing (Starting with Windows 8.1) (Deprecated in Windows 10 Insider Preview Build 19042 and above)

1677721616777216

0x1000000 (bit 24) 0x1000000 (bit 24)

VM 交换机验证 (从 Windows 8.1 开始) VM switch verification (Starting with Windows 8.1)

3355443233554432

0x2000000 (位 25) 0x2000000 (bit 25)

从 Windows 10 开始 (代码完整性检查) Code integrity checks (Starting with Windows 10)

不能使用此方法激活 SCSI 验证或 Storport 验证选项。You cannot use this method to activate the SCSI Verification or Storport Verification options. 有关信息,请参阅 SCSI 验证Storport 验证For information, see SCSI Verification and Storport Verification.

/Flags VolatileOptions /flags VolatileOptions
指定在 Windows 2000、Windows XP 和 Windows Server 2003 中立即更改的驱动程序验证程序选项,无需重新启动。Specifies the Driver Verifier options that are changed immediately without rebooting in Windows 2000, Windows XP, and Windows Server 2003. (在 Windows Vista 中,可以对所有 /flags 值使用 /volatile 参数。 ) (In Windows Vista, you can use the /volatile parameter with all /flags values.)

以十进制或十六进制格式输入数字, (使用 0x 前缀) 。Enter a number in decimal or in hexadecimal format (with an 0x prefix).

允许使用下列值的任意组合。Any combination of the following values is permitted.

小数Decimal 十六进制Hexadecimal 选项Option

11

0x1 (位 0) 0x1 (bit 0)

特殊池Special Pool

22

0x2 (位 1) 0x2 (bit 1)

强制 IRQL 检查Force IRQL Checking

44

0x4 (位 2) 0x4 (bit 2)

资源不足模拟Low Resources Simulation

/ruleclasses/rc <ruleclass_1> <ruleclass_2> <ruleclass_k>/ruleclasses or /rc <ruleclass_1> <ruleclass_2> ... <ruleclass_k>

Ruleclasses 参数从 Windows 版本1803开始可用。The ruleclasses parameter is available starting with Windows Version 1803.

Ruleclasses 参数包含一组比上面的 "/flags" 参数更大的验证类。The ruleclasses parameter encompasses a larger set of verification classes than the '/flags' parameter above. 当 "/flags" 限制为32位位图表达式时,此选项可以包括超过32个验证类。While '/flags' is limited to a 32 bit bitmap expression, this option can include more than 32 verification classes. 每个十进制整数表示一个验证类。Each positive decimal integer represents a verification class. 可以通过用空格字符分隔每个类 id 来表示多个类。Multiple classes can be expressed by separating each class id with a space character. 以下规则类 Id 可用,可省略前导0的。The following rule classes IDs are available and leading 0's can be omitted.

标准规则类Standard Rule Classes

“值”Value 规则Rule
11 特殊池Special pool
22 强制 IRQL 检查Force IRQL checking
44 池跟踪Pool tracking
55 I/O 验证I/O verification
66 死锁检测Deadlock detection
88 DMA 检查DMA checking
99 安全检查Security checks
1212 其他检查Miscellaneous checks
1818 DDI 合规性检查DDI compliance checking
3434 WDF 验证WDF Verification

其他规则类Additional Rule Classes

这些规则类用于特定的方案测试。These rule classes are intended for specific scenario testing. 规则类标记为 " (*) 需要 I/o 验证 (5) 将自动启用。Rule classes are marked with (*) require I/O Verification (5) that will be automatically enabled. 标记为的标志 (**) 支持禁用各个规则。Flags marked with (**) support disabling of individual rules. 标记为的标志 (***) 在默认情况下为日志记录模式,并且在发生冲突时需要/onecheck。Flags marked with (***) are in logging mode by default and require /onecheck in order to crash upon violation.

标记为的标志 (!) 需要启用 (规则类 36) 的 DIF 模式。Flags marked with (!) require DIF mode (rule class 36) to be enabled.

“值”Value 规则Rule
33 随机低资源模拟Randomized low resources simulation
1010 强制挂起 i/o 请求 ( * ) Force pending I/O requests (*)
1111 IRP 日志记录 ( * ) IRP logging (*)
1414 堆栈 ( 的固定 MDL 检查 ) Invariant MDL checking for stack (*)
1515 驱动程序 ( 的固定 MDL 检查 ) Invariant MDL checking for driver (*)
1616 Power framework 延迟模糊Power framework delay fuzzing
1717 端口/微型端口接口检查Port/miniport interface checking
1919 系统性资源不足模拟Systematic low resources simulation
2020 DDI 相容性检查 (额外) DDI compliance checking (additional)
2222 NDIS/WIFI 验证 ( * * ) NDIS/WIFI verification (**)
2424 内核同步延迟模糊处理Kernel synchronization delay fuzzing
2525 VM 交换机验证VM switch verification
2626 代码完整性检查Code integrity checks
3333 驱动程序隔离检查 ( * * *、! ) Driver isolation checks (***, !)
3636 DIF 模式DIF mode

/Iolevel 级别 /iolevel Level
仅 (Windows 2000) 指定 I/o 验证的级别。(Windows 2000 only) Specifies the level of I/O Verification.

Level 的值可以是 12The value of Level can be 1 or 2. 默认值是 1 秒。The default value is 1.

级别值Level value 说明Description

11

启用1级 i/o 验证 (默认值) Enables Level 1 I/O Verification (default)

22

启用1级 i/o 验证和级别 2 i/o 验证Enables Level 1 I/O Verification and Level 2 I/O Verification

如果未使用 /flags 0x10) 启用 i/o 验证 (,则将忽略 /iolevelIf I/O Verification is not enabled (by using /flags 0x10), /iolevel is ignored.

/log LogFileName [ /interval | ] /log LogFileName [/interval|Seconds]
创建名为 LogFileName 的日志文件。Creates a log file with name LogFileName. 驱动程序验证程序定期将统计信息写入此文件。Driver Verifier periodically writes statistics to this file. 有关详细信息,请参阅 创建日志文件For details, see Creating Log Files.

如果在命令行中键入了 验证程序/log 命令,则命令提示符不会返回。If a verifier /log command is typed at the command line, the command prompt does not return. 若要关闭日志文件并返回提示,请使用 CTRL + C 键。To close the log file and return a prompt, use the CTRL+C key. 重新启动后,若要创建日志,必须再次提交 验证程序/log 命令。After a reboot, to create a log, you must submit the verifier /log command again.

选项Option 说明Description

/Interval /interval Seconds

指定日志文件更新之间的时间间隔。Specifies the interval between log file updates. 默认为 30 秒。The default is 30 seconds.

/Rules 选项/rules Option
可在高级) (禁用的规则的选项。Options for rules that can be disabled (advanced).

选项Option 说明Description

查询query

显示可控规则的当前状态。Shows current status of controllable rules.

resetreset

将所有规则重置为其默认状态。resets all rules to their default state.

默认 IDdefault ID

将规则 ID 设置为其默认状态。Sets rule ID to its default state. 对于支持的规则,规则 IDBug 检查 0xC4 (DRIVER_VERIFIER_DETECTED_VIOLATION) 参数1值。For the supported rules, the rule ID is the Bug Check 0xC4 (DRIVER_VERIFIER_DETECTED_VIOLATION) parameter 1 value.

禁用 IDdisable ID

禁用指定的规则 IDDisables specified rule ID. 对于支持的规则,规则 IDBug 检查 0xC4 (DRIVER_VERIFIER_DETECTED_VIOLATION) 参数1值。For the supported rules, the rule ID is the Bug Check 0xC4 (DRIVER_VERIFIER_DETECTED_VIOLATION) parameter 1 value.

/标准 /standard
在下一次启动之后激活 "标准" 或默认的驱动程序验证程序选项。Activates the "standard" or default Driver Verifier options after the next boot. 标准选项包括 特殊的池强制 IRQL 检查池跟踪I/o 验证死锁检测DMA 验证The standard options are Special Pool, Force IRQL Checking, Pool Tracking, I/O Verification, Deadlock Detection, DMA Verification. 并且从 Windows Vista 开始 验证 WDF ,标准选项还包括 安全检查其他检查and WDF Verification Starting with Windows Vista, the standard options also include Security Checks and Miscellaneous Checks. 从 Windows 8 开始,标准选项还包括 DDI 相容性检查Starting with Windows 8, the standard options also include DDI compliance checking.

备注

从1803后的 Windows 10 版本开始,使用 /Flags 0x209BB 将不再自动启用 WDF 验证。Starting in Windows 10 versions after 1803, using /flags 0x209BB will no longer automatically enable WDF verification. 使用 /标准 语法启用标准选项,其中包含 WDF 验证。Use the /standard syntax to enable standard options, with WDF verification included.

/volatile /volatile
更改设置,无需重新启动计算机。Changes the settings without rebooting the computer. 可变设置将立即生效。Volatile settings take effect immediately.

在 Windows Vista 和更高版本的 Windows 上,可以将 /volatile 参数与 /flags 参数一起使用,以启用和禁用某些选项而无需重新启动。On Windows Vista and later versions of Windows, you can use the /volatile parameter with the /flags parameter to enable and disable some options without rebooting. 你还可以将 /volatile/adddriver/removedriver 参数一起使用,以便在不重新启动的情况下启动或停止对驱动程序的验证,即使驱动程序验证器尚未运行也是如此。You can also use /volatile with the /adddriver and /removedriver parameters to start or stop the verification of a driver without rebooting, even if Driver Verifier is not already running.

在 Windows Vista 之前的 Windows 版本中,只能将 /volatile 参数与 VolatileOptions 中列出的选项一起使用,并且仅当驱动程序验证程序已在运行并重新启动计算机时,它才可用于启动或停止验证驱动程序,而无需重新启动。On versions of Windows prior to Windows Vista, the /volatile parameter can be used only with the options listed in VolatileOptions and it can be used to start or stop the verification of a driver without rebooting only if Driver Verifier is already running and the computer has been rebooted.

有关详细信息,请参阅 使用可变设置For details, see Using Volatile Settings.

选项Option 说明Description

/Adddriver VolatileDriverList /adddriver VolatileDriverList

(Windows XP 和更高版本) 将指定的驱动程序添加到可变设置。(Windows XP and later) Adds the specified drivers to the volatile settings. 若要指定多个驱动程序,请列出它们的名称,用空格分隔。To specify multiple drivers, list their names, separated by spaces. 不支持通配符值,例如 ,sys.databases。Wildcard values, such as n.sys, are not supported. 有关详细信息,请参阅 使用可变设置See Using Volatile Settings for details.

/Removedriver VolatileDriverList/removedriver VolatileDriverList

(Windows XP 及更高版本) 从可变设置中删除指定的驱动程序。(Windows XP and later) Removes the specified drivers from the volatile settings. 若要指定多个驱动程序,请列出它们的名称,用空格分隔。To specify multiple drivers, list their names, separated by spaces. 不支持通配符值,例如 ,sys.databases。Wildcard values, such as n.sys, are not supported. 有关详细信息,请参阅 使用可变设置See Using Volatile Settings for details.

/reset /reset
清除所有驱动程序验证程序设置。Clears all Driver Verifier settings. 下一次启动后,将不会验证任何驱动程序。After the next boot, no drivers will be verified.

/querysettings /querysettings
(Windows XP 和更高版本的) 显示将被激活的选项的摘要,以及下次启动后将验证的驱动程序。(Windows XP and later) Displays a summary of the options that will be activated and drivers that will be verified after the next boot. 显示不包括使用 /volatile 参数添加的驱动程序和选项。The display does not include drivers and options added by using the /volatile parameter. 有关查看这些设置的其他方式,请参阅 查看驱动程序验证程序设置For other ways to view these settings, see Viewing Driver Verifier Settings.

/query /query
显示驱动程序验证程序的当前活动的摘要。Displays a summary of Driver Verifier's current activity. 显示中的 " 级别 " 字段是用 /volatile 参数设置的选项的十六进制值。The Level field in the display is the hexadecimal value of options set with the /volatile parameter. 有关每个统计信息的说明,请参阅 监视全局计数器监视各个计数器See Monitoring Global Counters and Monitoring Individual Counters for explanations of each statistic.

/domain 类型 **** 选项 /domain Types **** Options
控制验证程序扩展设置。Controls the verifier extension settings. 支持以下验证程序扩展类型。The following verifier extension types are supported.

类型Types 说明Description

wdmwdm

为 WDM 驱动程序启用验证程序扩展。Enables verifier extension for WDM drivers.

以此ndis

为网络驱动程序启用验证程序扩展。Enables verifier extension for networking drivers.

ksks

为内核模式流式处理驱动程序启用验证程序扩展。Enables verifier extension for kernel mode streaming drivers.

声卡audio

启用音频驱动程序的验证程序扩展。Enables verifier extension for audio drivers.

支持以下扩展选项。The following extension options are supported.

选项Options 说明Description

规则。默认值rules.default

为所选的验证程序扩展启用默认验证规则。Enables default validation rules for the selected verifier extension.

规则。所有rules.all

启用所选验证程序扩展的所有验证规则。Enables all validation rules for the selected verifier extension.

/logging /logging
启用所选验证程序扩展检测到的违反规则的日志记录。Enables logging for violated rules detected by the selected verifier extensions.

/livedump /livedump
为所选验证程序扩展检测到的冲突规则启用实时内存转储收集。Enables live memory dump collection for violated rules detected by the selected verifier extensions.

/? /?
显示命令行帮助。Displays command-line help.

有关使用这些命令的详细信息,请参阅 控制驱动程序验证 程序和 监视驱动程序验证程序For more information about the use of these commands, see Controlling Driver Verifier and Monitoring Driver Verifier.

/help /help
显示命令行帮助。Displays command-line help.

有关使用这些命令的详细信息,请参阅 控制驱动程序验证 程序和 监视驱动程序验证程序For more information about the use of these commands, see Controlling Driver Verifier and Monitoring Driver Verifier.

返回代码Return Codes

运行驱动程序验证程序后,将返回以下值。The following values are returned after driver verifier has run.

0:退出 _ 代码 _ 成功0: EXIT_CODE_SUCCESS

1:退出 _ 代码 _ 错误1: EXIT_CODE_ERROR

2: _ 需要退出代码 _ 重新启动 _2: EXIT_CODE_REBOOT_NEEDED