Drucker per Powershell Managen aktualisiert

cpi
2026-04-20 11:55:45 +02:00
parent 7eff404d27
commit 4913ae2ed4
+10 -6
@@ -33,7 +33,8 @@ 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 +57,8 @@ 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 +90,8 @@ 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 +147,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,7 +160,8 @@ 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:
@@ -178,4 +182,4 @@ Clear the printer queue:
`Get-Printer -Name "HP LaserJet M1530" | Get-PrintJob | Remove-PrintJob
`
---