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 String | Comparator | Result | Applicable 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*')]"}@% | Equals | True | Windows |