vssadmin delete shadowsvssadmin delete shadows

适用于: Windows 10,Windows 8.1,Windows Server 2016,Windows Server 2012 R2,Windows Server 2012,Windows Server 2008 R2,Windows Server 2008Applies to: Windows 10, Windows 8.1, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 R2, Windows Server 2008

删除指定卷的卷影副本。Deletes a specified volume's shadow copies. 只能删除具有 客户端可访问 的类型的卷影副本。You can only delete shadow copies with the client-accessible type.

语法Syntax

vssadmin delete shadows /for=<ForVolumeSpec> [/oldest | /all | /shadow=<ShadowID>] [/quiet]

参数Parameters

参数Parameter 描述Description
/for =<ForVolumeSpec>/for=<ForVolumeSpec> 指定将删除的卷影副本。Specifies which volume's shadow copy will be deleted.
/oldest/oldest 仅删除最旧的卷影副本。Deletes only the oldest shadow copy.
/all/all 删除指定卷的所有卷影副本。Deletes all of the specified volume's shadow copies.
/shadow =<ShadowID>/shadow=<ShadowID> 删除由 ShadowID 指定的卷影副本。Deletes the shadow copy specified by ShadowID. 若要获取卷影副本 ID,请使用 vssadmin list shadows 命令To get the shadow copy ID, use the vssadmin list shadows command. 输入卷影副本 ID 时,请使用以下格式,其中每个 X 表示十六进制字符:When you enter a shadow copy ID, use the following format, where each X represents a hexadecimal character:

XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX (XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX)XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX

/quiet/quiet 指定命令在运行时不显示消息。Specifies that the command won't display messages while running.

示例Examples

若要删除最旧的卷影副本,请键入:To delete the oldest shadow copy of volume C, type:

vssadmin delete shadows /for=c: /oldest

其他参考Additional References