<< Back to Script Library

List User’s Printers

This script will display all of the printers in a user session, and note the default printer.
Version: 1.3.4
Created: 2015-10-01
Modified: 2015-10-01
Creator: MattStut
Downloads: 2210
Tags: Printers
The Script Copy Script Copied to clipboard
Write-Host "List all Printers"
$RedirectedFolders = Get-WmiObject -Class Win32_Printer | select -Property Name,Sharename
if ($RedirectedFolders -eq $null) {
    Write-Host "No Printers"
} else {
    $RedirectedFolders | Format-Table -Autosize
    Write-Host "----------------------------------------------------------------"
    Write-Host "Default Printer is:"
    (Get-WmiObject -Class Win32_Printer -Filter "Default = $true").Name
}