Homebrew Wimlib
wimlib-imagex capture ./source_folder my_backup.wim --compress=LZX
Enter .
wimlib is an open-source, cross-platform library and command-line utility used to create, modify, extract, and mount Windows Imaging (WIM) files. It serves as a high-performance alternative to Microsoft's proprietary DISM (Deployment Image Servicing and Management) tool. homebrew wimlib
Read-write mounting ( --rw ) is experimental on macOS and can corrupt WIMs. Stick to read-only for safety. wimlib-imagex capture