The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
63 views

DSQuery return error : domain can't be reach

i'm facing a problem to setup an AD auth on my Zywall firewall. I want my vpn clients tunnel to my zywall with their AD credentials To do that, i need somes infos: Base DN Admin credentials : Bind ...
1
vote
1answer
34 views

dsget error probably because of users with “-” in their name

I'm trying to run a dsquery/dsget that will result in users that weren't active for a month and that are not disabled: dsquery user -inactive 4 -limit 0 | dsget user -samid -disabled ...
2
votes
2answers
331 views

Incomplete results when querying Active Directory for group members in a situation with trust relationships

We are attempting to query Active Directory for a list of all machines that are members of a group, along with information like OperatingSystem attributes. We can't get results for every member of ...
2
votes
1answer
1k views

DSQuery to find systems running Windows XP that have connected to domain within last 26 weeks

I'm trying to write a single dsquery which will tell me what systems have connected to our domain within the last 26 weeks that are running XP so we can figure out what we need to phase out over the ...
0
votes
1answer
563 views

how to add a dsquery script to excel

I have to update ad with home users number etc I've written the script and imported the usernames and phone numbers into excel Script : dsquery user -samid "username" "OU=Sys,OU=Prod ...
0
votes
1answer
136 views

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. ...
1
vote
1answer
574 views

DSquery user -office unknown parameter

I'm trying to lookup a username from dsquery using the office parameter as we store IDs inside of the office parameter. Any ideas on how to get their username? I tried dsquery user -office "IDHERE" ...
0
votes
1answer
138 views

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 ...
3
votes
2answers
21k views

I need to export a list of all users on our domain and I am not familiar with DSQUERY or DSGET?

I am really struggling to create the query that will export the following: Account FirstName LastName the OU that the user resides in Ideally I would like it as a CSV. I do not have access to the ...
3
votes
1answer
526 views

trying to copy security groups to a user using dsmod group utility in AD

I am trying to create a batch file that asks to enter source samid and destination samid. Then using dsquery and dsget find out what security groups source samid is assigned to and assign destination ...
1
vote
1answer
1k views

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 ...
1
vote
2answers
848 views

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 ...
1
vote
1answer
961 views

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 ...
4
votes
1answer
3k views

How can I find all groups a user belongs to via DSQUERY

How can I find all groups for a specific user (groups for which the user is assigned) using dsquery?
9
votes
2answers
1k views

Active Directory - Bulk Company Update

I was wondering if there is a way to update the 'Company' field for a large group of users within Active Directory? I would like to match all users with a company ending in a certain string. It would ...