Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Mounting ISO files with powershell
- You can mount ISO files easily with powershell's Mount-DiskImage cmdlet.
- Mount-DiskImage FULL_PATH_TO_ISO_FILE
- FULL_PATH_TO_ISO_FILE SHOULD BE THE FULL PATH. NO RELATIVE PATHS WORK HERE.
- Meaning,
- Mount-DiskImage .\randomisofile.iso
- Wont work. But dont fret. We've got ways around that.
- Mount-DiskImage $pwd\randomisofile.iso
- $pwd is the variable in powershell that holds the current working directory.
- Dont forget to add quotes when necessary:
- Mount-DiskImage "$pwd\Some Iso File With Spaces In It's name.iso"
- Unmounting the files:
- Right now, on my machine which has Win8 Installed, I can just right click the drive and Select Eject to Unmount it.
- With powershell, I can do this to dismount it:
- Get-Volume DRIVE_LETTER|Get-DiskImage|Dismount-DiskImage
- DRIVE_LETTER should be just a letter or a bunch of letters. "CDEF"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement