unexpose

Unexposes a shadow copy that was exposed by using the expose command. The exposed shadow copy can be specified by its Shadow ID, drive letter, share, or mount point.

Syntax

unexpose {<shadowID> | <drive:> | <share> | <mountpoint>}

Parameters

Parameter Description
<shadowID> Displays the shadow copy specified by the given Shadow ID. You can use an existing alias or an environment variable in place of <shadowID>. Use the add command without parameters to see all existing aliases.
<drive:> Displays the shadow copy associated with the specified drive letter (for example, drive P).
<share> Displays the shadow copy associated with the specified share (for example, \\MachineName).
<mountpoint> Displays the shadow copy associated with the specified mount point (for example, C:\shadowcopy\).
add Used without parameters will show you the existing aliases.

Examples

To unexpose the shadow copy associated with *drive P:*, type:

unexpose P: