Yes, that's the UNIX/Linux brute force method.
Glad you sorted.
Somewhat off topic. I was having difficulty creating a bootable Win10 USB stick because MS has made their ISO need a special tool.
I'd tried the recommended tool and it failed to boot properly; drivers not found by Win install. So I downloaded the
https://etcher.balena.io/ deb for Linux and ran it.
"This seems to be a special Windows ISO, won't work". But it gave a link to an old tool and I found the new version and was able to write the Win10 ISO to USB stick on Linux. No windows PCs to run the MS tool! I had a spare laptop with dead keyboard, which had Linux. But I knew it had come with Win7 and BIOS licence key for Win 10. So now automatically licenced Win10 pro with small external USB keyboard. I do have a Win10 VM on linux, but some things can't work on a VM.
Edit
The recommended Linux tool for Win10 iso was Ventoy, but didn't work. woeUSB-ng does (Mint 21.2, Mate desktop)
https://github.com/WoeUSB/WoeUSB-ng
Everything other than current Windows ISOs works with the default "USB Image Writer". Inc Kobo SD cards in a USB card reader.