Native .iso generation in Windows CMD?
Solution 1
I prefer the Microsoft’s own “CD-ROM and DVD-ROM Premastering Utility”, CDImage. It allows for fairly complete control over the options, including making the disc bootable, and it is easy to use.
CDImage is not an officially released program (ie, not on Microsoft Downloads), but it is easy to find it, as well as some front-ends for it—which often come with a copy of CDImage.
I also made myself a couple of batch files called makecd.bat
and makedvd.bat
with the appropriate switches to simplify it even further for the more common images I make:
> MakeCDVD.bat LABEL TARGET [SOURCE] [-bBOOTIMG]
>
> CD Switches: -l<LABEL> -h -j1 -x -m <TARGET>
> DVD Switches: -l<LABEL> -h -u1 <TARGET>
Solution 2
The two most 'native' solutions I could find are:
oscdimg.exe
The command line tool oscdimg.exe is installed as part of the 'Deployment Tools' feature in the Windows ADK (https://docs.microsoft.com/en-us/windows-hardware/get-started/adk-install). It allows the user to create an iso of a given folder by executing the following command:
oscdimg DIRECTORYPATH OUTPUTNAME.ISO
New-ISOFile
Microsoft PFE, Chris Wu, has created a Powershell function which uses the IFileSystemImage interface native to Windows to wrap files or folders into an iso file, his code can be found here: https://gallery.technet.microsoft.com/scriptcenter/New-ISOFile-function-a8deeffd
Related videos on Youtube
Michael
Updated on September 18, 2022Comments
-
Michael over 1 year
Is there some way to natively create a .iso file from a partition or directory via Windows CMD? From what I gather the answer is no, but coming from Linux, where
dd
accomplishes this so easily, it seems like there must be a way?Maybe somehow piping
robocopy
orxcopy
to a file or something?Certainly there are third-party solutions, but I'm just asking about doing this out-of-the-box.
-
Andrew Lambert over 12 yearsNot natively, though Windows 7 can burn ISO files from Explorer. You might want to look at
mkisofs
for Windows which is in the Cdrtools package (needs Cygwin). -
Synetech over 12 years(Your avatar—especially the small version—looks too much like goaste.)
:-o
-
sancho.s ReinstateMonicaCellio about 9 yearsVery related question superuser.com/questions/73731/…
-
-
Synetech over 12 yearsWhat the hell is wrong with hit-and-run down-voters. I have no clue what the problem is, so unless they leave a comment explaining why a perfectly valid answer to the question is not good, then I will continue to assume that it is correct and not bother to change it.
-
Michael over 12 yearsThanks! I was unaware of CDImage, and it looks like it do nicely.
-
Paul almost 3 yearsThe TechNet link is dead now, but various people have posted the code, just search for "New-IsoFile". At this moment, this is where I got it from.