Win32Exception (1): Incorrect function.
Win32Exception (1): Incorrect function cause
Error:
Category: AgentBase
EventId: 0
 
Error calling GetAzureAdJoinInformation
 
Exception: 
System.ComponentModel.Win32Exception (1): Incorrect function.Cause:
You have installed the migration agent on a machine which is not joined to an Azure/Entra domain or an Active directory domain. Currently we do not support WORKGROUP based migrations.
If you load cmd and perform a dsregcmd /status you will see this:
             AzureAdJoined : NO
          EnterpriseJoined : NO
              DomainJoined : NO