Skip to main content

Microsoft - On-premises DRS Joined

Summary

This document explains how to use dsregcmd.exe to query the system and determine the domain and Azure domain join status.

For more information, visit the official documentation: Troubleshoot device dsregcmd.

Settings

Detection StringComparatorResultApplicable OS
{%@powershell.exe -nologo -noprofile -command "$ErrorActionPreference='SilentlyContinue';$DSRegStatus = dsregcmd.exe /status;@('False','True')[($DSRegStatus -like '*AzureAdJoined : NO*') -and ($DSRegStatus -like '*EnterpriseJoined : YES*') -and ($DSRegStatus -like '*DomainJoined : YES*')]"}@%EqualsTrueWindows