Control Printers using MS PowerShell

Pc and Mac Repairs  > N/A >  Control Printers using MS PowerShell
0 Comments

Common PrintManagement cmdlets
For most system-level printer management tasks, you can use the built-in PrintManagement module, which contains a variety of cmdlets. 
Task 
Add a printer Add-Printer -ConnectionName "\\<ServerName>\<PrinterName>" Adds a network printer connection to a print server.
Remove a printer Remove-Printer -Name "<PrinterName>" Removes a specified printer from the local computer.
Set a default printer $printer = Get-CimInstance -Class Win32_Printer -Filter "Name='<PrinterName>'"
Invoke-CimMethod -InputObject $printer -MethodName SetDefaultPrinter
Uses the Win32_Printer WMI class to find a printer and then set it as the default.
Manage print jobs Get-PrintJob Lists the print jobs currently in a printer’s queue.
Pause/Resume print jobs Suspend-PrintJob and Resume-PrintJob Pauses or resumes a specific print job.
Change Printer to use Single Sided Set-PrintConfiguration -PrinterName “\\servername\print-share\ -DuplexingMode OneSided Set to use OneSided Printing

 

Control printers using powershell:
https://www.google.com/search?client=firefox-b-1-d&q=how-to+manage+user+printers+using+powershell&udm=50&fbs=AIIjpHxU7SXXniUZfeShr2fp4giZud1z6kQpMfoEdCJxnpm_3YlUqOpj4OTU_HmqxOd8LCZRmCXZfilaEd7O0OWEblYuXRFkIyLCRXrxWNyn5IQQps0XalWR4lysgApcAokXMyLMc5paSdoFuY48P0VW2G1X-BT8Glvpcc_psFcYPzb7exd0Ia77U7j3c-QnkKIhEzoGULNxHJalDRCf4gfWU_FmoEtjfA&ved=2ahUKEwjeo_Op2L2PAxW6DjQIHSosGZ4Q0NsOegQIWxAA&aep=10&ntc=1&mtid=Fci4aMynNYCi0PEPytj_gAk&mstk=AUtExfB1EK0fmEhtRdMLp37ryldXmUl9829TabbSlp-yqoveKRfj-e_khP6Dnql_RTZoYRxlOG6Ov-fCKj9UPb1gqwMJUqwbJxaJtrP5lyUV3Ym4HLEV7PzfuT2QTcpCQmVJgJBRZAvPSdP_HujbmnXLGc7ih8G7GvjisWg&csuir=1

Leave a Reply

Your email address will not be published. Required fields are marked *