How to expand "rundll32.exe dsquery openquerywindow" editable options.

Heath Durrett 501 Reputation points
2023-08-17T20:55:32.23+00:00

I am aware that users can use "rundll32.exe dsquery openquerywindow" to launch the AD query window, this allows users to edit particular properties of their own account.

Specifically, by default it allows them to edit the "General,Address,Business" tabs of the user account as a sysadmin would see by browsing ADDS.

I'd like to know if it is possible to add the "Telephones" tab to this default query window allowing users to edit their own telephone contact numbers?

E.G...is it possible to add the Telephones tab like below when a user executes "rundll32.exe dsquery openquerywindow" or allow users to edit telephone numbers in any other way using this tool?

ChuckNorris

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
12,075 questions
Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,937 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
11,382 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Amit Singh 5,231 Reputation points
    2023-08-21T08:54:45.55+00:00

    No, running "rundll32.exe dsquery openquerywindow" won't allow the "Telephones" tab to be added to the default query window. The " Telephones " tab is not one of the default tabs shown in the query window is the "Telephones" tab.

    However, a couple of methods exist to use this service to let customers change their phone numbers. One approach is making a custom query that only returns the telephone number attribute. Then you may give the users a shortcut to the query you created. Consumers can change their phone number once they run the shortcut.

    Utilising the Exchange Management Shell is another option to allow consumers to alter their phone numbers. The Set-User cmdlet can update a user's phone number attribute. The Set-User cmdlet can then generate a script that you can distribute to users. Their phone number will be updated whenever the users run the script.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.