Windows PowerShell command on Get-command Dismount-DiskImage
MyWebUniversity

Windows PowerShell command on Get-command Dismount-DiskImage

NAME

Dismount-DiskImage

SYNOPSIS

Dismounts a disk image (virtual hard disk or ISO) so that it can no longer be accessed as a disk.

SYNTAX

Dismount-DiskImage [-ImagePath] [-CimSession ] [-PassThru] [-StorageType {Unknown | ISO |

VHD | VHDX | VHDSet}] [-ThrottleLimit ] [-Confirm] [-WhatIf] []

Dismount-DiskImage [-CimSession ] [-PassThru] [-ThrottleLimit ] [-Confirm] [-WhatIf]

[]

Dismount-DiskImage [-CimSession ] [-PassThru] [-StorageType {Unknown | ISO | VHD | VHDX | VHDSet}]

[-ThrottleLimit ] -DevicePath [-Confirm] [-WhatIf] []

DESCRIPTION

The Dismount-DiskImage cmdlet dismounts a disk image (virtual hard disk or ISO) so that it can no longer be

accessed as a disk. This cmdlet requires either the full image path of the ISO or VHD file, or the device path. To eject a VHD file, administrator privilege is required. Administrator privilege is not needed to eject an ISO file on Windowsr 8. On Windows Serverr 2012, only an administrator is allowed to mount or eject ISO file.

PARAMETERS

-CimSession []

Runs the cmdlet in a remote session or on a remote computer. Enter a computer name or a session object, such

as the output of a New-CimSession or Get-CimSession cmdlet. The default is the current session on the local

computer. Required? false Position? named Default value none Accept pipeline input? false Accept wildcard characters? false

-DevicePath

Specifies the device path of the ISO/VHD file. You cannot use this parameter with the ImagePath parameter. Required? true Position? named Default value none

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false

-ImagePath

Specifies the path of the ISO or VHD file. You cannot use this parameter with the DevicePath parameter. Required? true Position? 1 Default value none

Accept pipeline input? True (ByValue, ByPropertyName)

Accept wildcard characters? false

-PassThru []

Specifies that the cmdlet should output an object representing the dismounted disk image. By default, this cmdlet does not generate any output. Required? false Position? named Default value none Accept pipeline input? false Accept wildcard characters? false

-StorageType []

Specifies the storage type of a file: ISO, VHD, VHDx, or Unknown. If the StorageType parameter is not specified or the Unknown type is provided, the storage type is determined by file extension. Required? false Position? named Default value none

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false

-ThrottleLimit []

Specifies the maximum number of concurrent operations that can be established to run the cmdlet. If this parameter is omitted or a value of 0 is entered, then Windows PowerShellr calculates an optimum throttle limit for the cmdlet based on the number of CIM cmdlets that are running on the computer. The throttle limit applies only to the current cmdlet, not to the session or to the computer. Required? false Position? named Default value none Accept pipeline input? false Accept wildcard characters? false

-Confirm []

Prompts you for confirmation before running the cmdlet.Prompts you for confirmation before running the cmdlet. Required? false Position? named Default value false Accept pipeline input? false Accept wildcard characters? false

-WhatIf []

Shows what would happen if the cmdlet runs. The cmdlet is not run.Shows what would happen if the cmdlet runs. The cmdlet is not run. Required? false Position? named Default value false Accept pipeline input? false Accept wildcard characters? false This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).

INPUTS

Microsoft.Management.Infrastructure.CimInstance#ROOT/Microsoft/Windows/Storage/MSFT_DiskImage http://msdn.microsoft.com/library/windows/desktop/hh830494.aspx You can pipe a DiskImage object to the InputObject parameter.

OUTPUTS

Microsoft.Management.Infrastructure.CimInstance#ROOT/Microsoft/Windows/Storage/MSFT_DiskImage http://msdn.microsoft.com/library/windows/desktop/hh830494.aspx If you specify the PassThru parameter, this cmdlet outputs an object that represents the disk image that you dismounted.

Example 1: Dismount a disk image by path

PS C:\>Dismount-DiskImage -ImagePath "E:\ISO-Files\My US Visit Fall 2010 Pictures.iso"

This example ejects an ISO named My US Visit Fall 2010 Pictures by specifying the image path at E:\ISO-Files.

Example 2: Dismount a disk image by device path

PS C:\>Dismount-DiskImage -DevicePath \\.\CDROM1

This example ejects an ISO by specifying device path for cdrom1. Refer to the Get-DiskImage cmdlet to learn how to

find the device path of an ISO or VHD file.

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/?LinkID=811991

Get-DiskImage

Mount-DiskImage



Contact us      |      About us      |      Term of use      |       Copyright © 2000-2019 OurUNIX.com ™