Questions tagged [dsquery]

22 questions
1
vote
2 answers

Piping DSQUERY commands together

Can DSQUERY commands be piped together? eg to return a list of users in each of the groups found within the 'Builtin' container? dsquery groups "cn=Builtin,dc=domain,dc=company" | dsquery groups "cn=%builtingroups%cn=Builtin,dc=domain,dc=company"…
1
vote
2 answers

Convert linux ldapsearch to Windows dsquery

I am converting a website fro being hosted on Linux and Apache to Windows and IIS. The pages are currently written in php but new functionality will be in something along the lines of C#.net In the php files there is a popen command calling the…
Irukesu
  • 13
  • 1
  • 3
1
vote
1 answer

Dsquery nested groups

How would I write a dsquery to get a list of all the members of a d-list, expanding any nested groups to get the members of those groups? I've written this: dsquery * -filter "(&(memberOf=cn=...))" -r -limit 0 -attr CUSTOMFIELD sAMAccountName…
Simon
  • 111
  • 1
  • 4
0
votes
3 answers

ldap query with nested group

I try to build a ldap query to MS Active Directory. I found that there is a LDAP_MATCHING_RULE_IN_CHAIN type to do so. Which results in the follow…
Thomas
  • 177
  • 3
  • 13
0
votes
1 answer

Bulk Phone number change - DSQUERY

I am investigating a way to update the "telephone field" for a large group of users within Active Directory? I would like to match all users with their new phone number as they have moved offices. I'd like to use DSQUERY/DSMOD to do this but don't…
JJJJNR
  • 870
  • 6
  • 20
  • 32
0
votes
1 answer

dsquery command troubles

I have the following command; its purpose is to list any services which are running under a user account within the domain and output that information into text files within a directory. Each machine will have its own text file, within that file is…
Matt
  • 85
  • 2
  • 7
0
votes
1 answer

dsquery results inconsistency

I have a single domain (my.local) with 2 domain controllers: 192.168.3.63 - DC1 192.168.3.64 - DC2 (primary DC) I'm testing request to find if user is a member of a group. Here's a query…
mistika
  • 111
  • 3
1
2