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:
Related links
Source: Microsoft Learn / Windows Server documentation by Microsoft and contributors (upstream author metadata: robinharwood). Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.
