dsquery group -name ("Group name here") |dsget group -members |dsget user -display >memberlist.txt
If you get error:
dsget failed:Directory object not found
check user names for restricted symbols.Almost any characters can be used in Distinguished Names. However, some must be escaped with the backslash escape character. Active Directory requires that the following characters be escaped:
Comma
,
Backslash character
\
Pound sign (hash sign)
#
Plus sign
+
Less than symbol
<
Greater than symbol
>
Semicolon
;
Double quote (quotation mark)
"
Equal sign
=
Leading or trailing spaces
The space character must be escaped only if it is the leading or trailing character in a component name, such as a Common Name. Embedded spaces should not be escaped.
Nav komentāru:
Ierakstīt komentāru