I need to check if my device is local Domain Joined or Azure AD joined/registered. How to check this? I tried NetGetJoinInformation and could not get anything for Azure AD joined scenario. Can anyone point me in the right direction?
I need to check if my device is local Domain Joined or Azure AD joined/registered. How to check this?
You could get the answer from this document.
To verify whether a device is joined to an Azure AD, you can review the Access work or school dialog on your device.
Alternatively, you can run the following command: dsregcmd /status On a successfully joined device, AzureAdJoined is Yes.