DSQuery OpenQueryWindow with parameter

Mohammed Ilyas 1 Reputation point
2022-08-12T04:10:02.363+00:00

Hi,
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

.NET CLI
.NET CLI
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
    2023-08-14T19:35:35.6233333+00:00

    You can use the following command:

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