Drucker per Powershell Managen aktualisiert
@@ -33,7 +33,7 @@ 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
|
||||
|
||||
@@ -56,7 +56,7 @@ 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
|
||||
@@ -88,7 +88,7 @@ Disable printer sharing:
|
||||
|
||||
`Set-Printer -Name "Ricoh IM 2702" -Shared $False
|
||||
`
|
||||
|
||||
---
|
||||
### List Printers on a Print Server Using PowerShell
|
||||
List the printers installed on a computer:
|
||||
|
||||
@@ -144,7 +144,7 @@ Remove all mapped network printers from your computer:
|
||||
|
||||
`Get-Printer | ?{$_.type -eq 'Connection'} | Remove-Printer
|
||||
`
|
||||
|
||||
---
|
||||
### Set a Default Printer on Windows
|
||||
Windows automatically sets the default printer to the last printer that the user successfully printed to. To prevent Windows from reassigning the default printer, create the LegacyDefaultPrinterMode registry parameter:
|
||||
|
||||
@@ -157,9 +157,7 @@ Then use the following commands to set the fixed default printer:
|
||||
$Printer = Get-CimInstance -Class Win32_Printer -Filter "Name='Ricoh IM 2702'"
|
||||
Invoke-CimMethod -InputObject $Printer -MethodName SetDefaultPrinter
|
||||
```
|
||||
|
||||
|
||||
|
||||
---
|
||||
### How to Remove Printer with PowerShell
|
||||
To remove a printer, use the command:
|
||||
|
||||
@@ -180,4 +178,4 @@ Clear the printer queue:
|
||||
|
||||
`Get-Printer -Name "HP LaserJet M1530" | Get-PrintJob | Remove-PrintJob
|
||||
`
|
||||
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user