Skip to Main Content
Created by Michael van Kleeff
Created on May 19, 2021

Mount ISO/Image

Allow mounting ISO file to computer, for installing steps, pulling back the Drive letter into a variable which can be used on next actions for installing actions.


Sample:

$mount = mount-diskimage -imagepath "C:\Temp\TIA_Portal_STEP7_Prof_Safety_WINCC_Adv_Unified_V16_2.iso"

$driveletter = (Get-Volume -FriendlyName "STEP7ProfSafetyWinCCAdvUnified").DriveLetter

$drive = ((Get-Volume -FriendlyName "STEP7ProfSafetyWinCCAdvUnified").DriveLetter + ":")

Start-Process "$drive\support\AuditViewer_v72.exe" -NoNewWindow -Wait

Get-Volume $driveletter | Get-DiskImage | Dismount-DiskImage

Product Application Workspace
  • Attach files