AWS Tools for Windows PowerShell
Command Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Synopsis

Removes an S3 PowerShell drive created by Mount-S3PSDrive. Step off the drive first if it is your current location.

Syntax

Dismount-S3PSDrive
-Name <String>

Description

Unmounts an S3 drive previously created with Mount-S3PSDrive. Thin wrapper over Remove-PSDrive. Step off the drive first (for example, `Set-Location $HOME`) because PowerShell cannot remove a drive that is the current location. Use Get-PSDrive to list mounted drives.

Parameters

-Name <String>
Name of the drive to unmount (the -Name given to Mount-S3PSDrive).
Required?False
Position?1
Accept pipeline input?False

Outputs

None
This cmdlet does not generate any output.

Examples

Example 1

Set-Location $HOME
Dismount-S3PSDrive -Name S3
Changes to a location outside the S3 drive, then removes the drive.

Supported Version

AWS Tools for PowerShell: 2.x.y.z