Drucker per Powershell Managen aktualisiert
@@ -9,6 +9,7 @@ The built-in PrintManagement PowerShell module includes 22 cmdlets for managing
|
|||||||
`Get-Command –Module PrintManagement
|
`Get-Command –Module PrintManagement
|
||||||
`
|
`
|
||||||
|
|
||||||
|
```
|
||||||
Add-Printer – add (install) a new printer;
|
Add-Printer – add (install) a new printer;
|
||||||
Add-PrinterDriver – install a new printer driver;
|
Add-PrinterDriver – install a new printer driver;
|
||||||
Add-PrinterPort – create a local print port;
|
Add-PrinterPort – create a local print port;
|
||||||
@@ -31,6 +32,7 @@ Set-Printer – update the printer configuration;
|
|||||||
Set-PrinterProperty – change printer properties;
|
Set-PrinterProperty – change printer properties;
|
||||||
Suspend-PrintJob – suspend (pause) the print job;
|
Suspend-PrintJob – suspend (pause) the print job;
|
||||||
Write-PrinterNfcTag – write information into the NFC tag.
|
Write-PrinterNfcTag – write information into the NFC tag.
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
### Adding Printer Drivers to the DriverStore
|
### 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.
|
Copy the exact name of the printer driver from the INF file.
|
||||||
|
|
||||||
|
|
||||||
List available print drivers:
|
List available print drivers:
|
||||||
|
|
||||||
`Get-PrinterDriver
|
`Get-PrinterDriver
|
||||||
`
|
`
|
||||||
|
|
||||||
### How to Install Printer with PowerShell
|
### 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:
|
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
|
`Add-PrinterPort -Name "LocalPort:" -ErrorAction -Verbose
|
||||||
`
|
`
|
||||||
|
|
||||||
Or specify the remote printer IP or print server name as the PrinterHostAddress.
|
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"
|
`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:
|
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
|
`Add-Printer -Name "Ricoh IM 2702" -DriverName "Kyocera Classic Universaldriver PCL6" -PortName USB001 -Verbose
|
||||||
|
|||||||
Reference in New Issue
Block a user