From 7eff404d27d7adbc044cbc2c762be8750c5c4ebc Mon Sep 17 00:00:00 2001 From: cpi Date: Mon, 20 Apr 2026 11:55:01 +0200 Subject: [PATCH] Drucker per Powershell Managen aktualisiert --- Drucker-per-Powershell-Managen.md | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/Drucker-per-Powershell-Managen.md b/Drucker-per-Powershell-Managen.md index 1420498..0d04221 100644 --- a/Drucker-per-Powershell-Managen.md +++ b/Drucker-per-Powershell-Managen.md @@ -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 ` - +---