DSQuery OpenQueryWindow with parameter

Mohammed Ilyas 1 Reputation point

how to open DSquery openquerywindow find to printers or computer from command prompt

what is process used when we click Add printer from Microsoft office like excel and its open with custom find printer option

A cross-platform toolchain for developing, building, running, and publishing .NET applications.
319 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,453 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Vahid Ghafarpour 17,700 Reputation points

    You can use the following command:

    dsquery * "CN=Printers,DC=domain,DC=com" -scope base -attr name
    0 comments No comments