![]() ![]() If you take a second look at the output of each command you will notice that the result doesn’t reflect the action of the command. ImagePath : D:\ISO\mu_exchange_server_2013_圆4.iso Supply values for the following parameters:īummer! Instead of getting mounted images we are prompted to enter the path of the image file! So, to bypass that annoying request and get the images we get a list of volumes and pipe them to the Get-DiskImage cmdlet: PS> Get-Volume | Get-DiskImage PS> Get-DiskImageĬmdlet Get-DiskImage at command pipeline position 1 How about getting a list of mounted files? Let’s try the Get-DiskImage cmdlet. PS> Dismount-DiskImage -ImagePath 'D:\ISO\en_windows_8_ent_圆4.iso' -PassThru ImagePath : D:\ISO\en_windows_8_ent_圆4.isoīy default, Mount-DiskImage does not generate any output, so add the PassThru switch to get a result. For example, to mount an ISO image: PS> Mount-DiskImage -ImagePath 'D:\ISO\en_windows_8_ent_圆4.iso' -PassThru In PowerShell, we can manage those drives via the Storage module and its *-DiskImage cmdlets. To dismount, right click the drive and chose ‘Eject’. To mount ISO files, simply double click them. ![]() When mounted, a virtual hard disk or ISO file gets a drive letter assigned to it and it appears as a normal disk drive in Windows Explorer. Starting with Windows 8, mounting virtual hard disks or ISO files is not an issue anymore. Note: This tip requires PowerShell 3.0 and Windows 8 or above. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
January 2023
Categories |