不想为了创建 iso 文件装个软件,于是找到了用 powershell 脚本创建 iso 映像文件的方法:
Create an ISO file with PowerShell!
I received a request at work to transfer 5+gb from the internal network, to a server in the DMZ. Our DMZ networks are locked down, so I cannot copy the files directly. I have the trial version of UltraISO that I’ve used for tasks like this in the past, but it’s limited to 300mb in the trial version. Previously, we’ve used a “swing VMDK” that we’d mount on an internal VM, copy the data to it, take this VMDK and download it to my PC with something like WinSCP, then upload it to a DMZ datastore, mount it to the VM, etc. This can get messy, especially if you don’t remember to remove and delete the “swing VMDK”.
I decided to do some research online to see if I could use something like 7-zip or another tool to create the ISO. I happened upon a function that someone wrote for PowerShell to create an ISO via Microsoft’s Technet Script Center. I took the function, read through it to verify it wasn’t going to do anything malicious (which you should ALWAYS do before just blatantly running someone else’s code) and decided to try it.
Here’s the funct

本文介绍了一种使用PowerShell脚本来创建ISO文件的方法,避免了安装额外软件。作者分享了一个自定义函数,成功将大量文件(5GB)打包成ISO,方便在受限网络环境下传输。
最低0.47元/天 解锁文章
882

被折叠的 条评论
为什么被折叠?



