Create ISO image using PowerShell: how to save IStream to file?

前端 未结 2 1177
既然无缘
既然无缘 2020-12-19 04:47

I want to create an ISO image, so a .iso file, on Windows. This is possible to do using COM component IMAPI2FS.MsftFileSystemImage, and I found instructions on how to do th

2条回答
  •  鱼传尺愫
    2020-12-19 05:06

    You need to use FileStream writer. Check this link for an example of how it is done in c#. http://tools.start-automating.com/Install-ExportISOCommand/?-Download

    The function there can be used to create cmdlets that help you create ISO. For example,

    Run Install-ExportISOCommand This creates Export-Iso

    Then, use Export-ISO to create an ISO.

    Export-Iso -ISOPath C:\dropbox\test.iso -FileName C:\Dropbox\Scripts
    

提交回复
热议问题