The EnumNTDomainGroups method returns a QueryResults object enumerating the Microsoft® Windows NT® group accounts defined on a domain.
object.EnumNTDomainGroups( [ Domain ] ) as QueryResults
Part | Description |
---|---|
object | Expression that evaluates to an object in the Applies To list |
Domain | String naming an existing Windows NT domain and directing output to include groups defined on that domain |
A QueryResults object containing one result set defined by these columns.
Column | Data type | Description |
---|---|---|
group | nchar(256) | Name of a Windows NT group account |
comment | nchar(256) | Text describing the group account |
When not directed to a user-specified domain, the QueryResults object returned lists Windows NT groups defined locally (defined explicitly on the server running Microsoft SQL Server™).
HRESULT EnumNTDomainGroups(
LPSQLDMOQUERYRESULTS* ppResults,
SQLDMO_LPCSTR Domain = NULL);