Tuesday, October 22, 2013

PowerShell Tip : Find Default Printer Installed using Powershell.


The job of System Administrators are very adventurous, sometime you have to find a little-little settings and sometime you have to write a big-big,  hundred’s of line’s scripts.

Today, my task was to find a default printer installed on laptops. To solve it , i used the Win32_Printer class.

You can run the below query on your laptop and this will show you the default installed  printer on your system.

To run the below command on the remote system you can –Computer parameter and make sure you are proper admin rights to access the system.

We are using Get-WmiObject cmdlet and then we are running a WQL query to select everything from Win32_Printer class and choose to show that result where default value is true.


Get-WmiObject -Query " SELECT * FROM Win32_Printer WHERE Default=$true"

21-10-2013 17-53-29

If you want to see all printers installed on your laptop, you can run the below code and this will show you the list of all printers,  with their Port Name and location.

Get-WmiObject -Query " SELECT * FROM Win32_Printer" | Select Name, Default, PortName,Location

21-10-2013 13-53-47

I love WMI .

Happy learning . ;o) .

Tested on : Windows7 [64 bit]

Aman Dhally
clip_image001 clip_image002 clip_image003 clip_image005  clip_image007


  1. In a domain with some computers, is it possible to get all default printer with this PS command?

    1. The effectiveness of IEEE Project Domains depends very much on the situation in which they are applied. In order to further improve IEEE Final Year Project Domains practices we need to explicitly describe and utilise our knowledge about software domains of software engineering Final Year Project Domains for CSE technologies. This paper suggests a modelling formalism for supporting systematic reuse of software engineering technologies during planning of software projects and improvement programmes in Final Year Project Centers in Chennai.

      Software management seeks for decision support to identify technologies like JavaScript that meet best the goals and characteristics of a software project or improvement programme. JavaScript Training in Chennai Accessible experiences and repositories that effectively guide that technology selection are still lacking.

      Aim of technology domain analysis is to describe the class of context situations (e.g., kinds of JavaScript software projects) in which a software engineering technology JavaScript Training in Chennai can be applied successfully

    2. This comment has been removed by the author.

  2. How to run this command for remote pc

  3. Please share syntax to run these commands in domain

  4. Hii
    Now and then, you may keep running into issues utilizing the printer when printing your pictures and archives. These difficulties can be settled by getting the assistance of specialized specialists.

    If any one know more about Hp Printer Visit To Technical Supports For Hp Printer | +1-855-517-2433

    If any one know more about Canon Printer Visit To Technical Supports For Canon Printers | +1-855-517-2433

    If any one know more about Canon Printing Problems and Solution Visit To Canon Printing Problems and Solution | +1-855-517-2433

    If any one know more about Brother Printers Visit To Technical Supports For Brother Printers | +1-855-517-2433

    If any one know more about Brother Printers Supports Visit To Brother Printer Support | +1-855-517-2433

    If any one know more about Computer Support Visit To Technical Supports For Computer Support | +1-855-517-2433

    Call Now +1-855-517-2433


  5. Hi
    nice blog
    Get a Free Diagnostic Evaluation
    If you face problem while operating the printer
    Call us on our Toll Free number +1-855-517-2433
    For more information visit our site Printer support

  6. We are concerned about a number of things when we are looking for suitable inkjet printers. The most important component in this relation is https://qualityinkjetrefills.ca cartridges. These printers are mostly used for home purposes as well as for small and medium scaled businesses. They can fulfill limited printing requirements. There are two purchasing options and you can choose one according to your financial scalability.

  7. You have your mastered DVD; edited and perfected. Now, you need advice on getting your DVDs designed, printed and packaged in the best quality and most appropriate packaging type available for your project. This article aims https://roxwellwaterhouse.com/ give some sound and practical information and considerations with regards to how you need to go about getting your artwork designed and your packaging sourced.