PowerShell 4.0 Add-Printer

Pawdady picture Pawdady · Jan 24, 2014 · Viewed 7.6k times · Source

I've just installed PowerShell 4.0 on my Win7 SP1 box, (up from the 2.0 native version). PowerShell 3.0 was supposed to have included a bunch of handy printer-specific functions such as Add-Printer, Add-PrinterDriver, etc., but running a 'Get-Command' on my box doesn't show any of the commands I'm looking for.

Do I have to install PowerShell 3.0 to get them?

Answer

Adil Hindistan picture Adil Hindistan · Jan 25, 2014

"PrintManagement" module, which includes the commands you mentioned was available with PowerShell v3 on Windows 8 / Windows Server 2012 In a sense, it's tied to the Operating System, not directly to the PowerShell version.

    CommandType     Name                                               ModuleName                                                                         
-----------     ----                                               ----------                                                                         
Function        Add-Printer                                        printmanagement                                                                    
Function        Add-PrinterDriver                                  printmanagement                                                                    
Function        Add-PrinterPort                                    printmanagement                                                                    
Function        Get-PrintConfiguration                             printmanagement                                                                    
Function        Get-Printer                                        printmanagement                                                                    
Function        Get-PrinterDriver                                  printmanagement                                                                    
Function        Get-PrinterPort                                    printmanagement                                                                    
Function        Get-PrinterProperty                                printmanagement                                                                    
Function        Get-PrintJob                                       printmanagement                                                                    
Function        Read-PrinterNfcTag                                 printmanagement                                                                    
Function        Remove-Printer                                     printmanagement                                                                    
Function        Remove-PrinterDriver                               printmanagement                                                                    
Function        Remove-PrinterPort                                 printmanagement                                                                    
Function        Remove-PrintJob                                    printmanagement                                                                    
Function        Rename-Printer                                     printmanagement                                                                    
Function        Restart-PrintJob                                   printmanagement                                                                    
Function        Resume-PrintJob                                    printmanagement                                                                    
Function        Set-PrintConfiguration                             printmanagement                                                                    
Function        Set-Printer                                        printmanagement                                                                    
Function        Set-PrinterProperty                                printmanagement                                                                    
Function        Suspend-PrintJob                                   printmanagement                                                                    
Function        Write-PrinterNfcTag                                printmanagement