I need to find all usernames and display names in a group.
C:\>dsget group "CN=thegroup,OU=firstfloor
,DC=compan
y,DC=com" -members -expand | dsget user -samid -display
It works but if theres a group inside the group i get an error:
"dsget failed:CN=office,OU=groups
,OU=depart
ment2,DC=s
erver34,DC
=company,D
C=com:T
he object class of the target does not match the one specified on the command li
ne."
I think i get this error because one of the members in the group is a group..but isnt there any way of only getting the users?
Start Free Trial