NOTE:
Make sure your client installation can find your domain controller via dns. The simplest way is Setting up a Domain Override
curl https://releases.ubuntu.com/22.04/ubuntu-22.04.1-desktop-amd64.iso -o ubuntu-22.04.1-desktop-amd64.iso
mv ubuntu-22.04.1-desktop-amd64.iso /mnt/tank/VM/ISO
When the installer asks Who Are You? Check the box for Active Directory
Enter the details and credentials for your domain controller in the next page
download here: https://www.microsoft.com/software-download/windows10
scp ~/Downloads/Win10_21H2_English_x64.iso root@truenas.lab.arpa:/mnt/tank/VM/ISO
Join VM to domain and use to manage it via RSAT:
rsat
https://www.microsoft.com/en-us/download/details.aspx?id=45520save as
on desktop