diff --git a/Drucker-per-Powershell-Managen.md b/Drucker-per-Powershell-Managen.md index 7e31ac0..3d6a63d 100644 --- a/Drucker-per-Powershell-Managen.md +++ b/Drucker-per-Powershell-Managen.md @@ -9,6 +9,7 @@ The built-in PrintManagement PowerShell module includes 22 cmdlets for managing `Get-Command –Module PrintManagement ` +``` Add-Printer – add (install) a new printer; Add-PrinterDriver – install a new printer driver; Add-PrinterPort – create a local print port; @@ -31,6 +32,7 @@ Set-Printer – update the printer configuration; Set-PrinterProperty – change printer properties; Suspend-PrintJob – suspend (pause) the print job; Write-PrinterNfcTag – write information into the NFC tag. +``` ### Adding Printer Drivers to the DriverStore @@ -48,18 +50,23 @@ Once the driver has been installed in the Windows Driver Store, it must be added ` Copy the exact name of the printer driver from the INF file. + + List available print drivers: `Get-PrinterDriver ` + ### How to Install Printer with PowerShell Before creating a new printer, you must add a printer port. This can be a local port or it can be a network port (to send print jobs to a remote printer over the network). For example: `Add-PrinterPort -Name "LocalPort:" -ErrorAction -Verbose ` + Or specify the remote printer IP or print server name as the PrinterHostAddress. `Add-PrinterPort -Name "IP_192.168.10.26" -PrinterHostAddress "192.168.10.26" ` + To create a new printer in Windows, specify the printer name, driver, and port: `Add-Printer -Name "Ricoh IM 2702" -DriverName "Kyocera Classic Universaldriver PCL6" -PortName USB001 -Verbose