Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Queries Active Directory information.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
SystemInfo LDAP | 9.3 | ❌ No | ✅ Yes | ❌ No | ❌ No | ❌ No |
none
Returns JSON or error.
Query Active Directory details on Windows:
MBS( "SystemInfo.ADSystemInfo" )
Example result:
{
"UserName": "CN=John Doe,OU=2SH User,DC=2SXXX,DC=2S",
"ComputerName": "CN=2SMBP16W10,CN=Computers,DC=2SXXX,DC=2S",
"SiteName": "Default-First-Site-Name",
"DomainShortName": "2SXXX",
"DomainDNSName": "2SXXX.2S",
"ForestDNSName": "2SXXX.2S",
"PDCRoleOwner": "CN=NTDS Settings,CN=2SDCERP,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=2SXXX,DC=2S",
"SchemaRoleOwner": "CN=NTDS Settings,CN=2SDCERP,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=2SXXX,DC=2S",
"IsNativeMode": true,
"DCName": "2SDCSTORAGE.2SXXX.2S",
"DCSiteName": "Default-First-Site-Name"
}
This function is free to use.
Created 4th June 2019, last changed 19th May 2023