- Windows Server 2016 Automation with PowerShell Cookbook(Second Edition)
- Thomas Lee
- 63字
- 2021-07-02 18:15:59
How to do it...
- Add the print driver for the new printing device:
Add-PrinterDriver -Name
'HP LaserJet 9000 PS Class Driver'
- Get the Sales Group printer object and store it in $Printer:
$Printer = Get-Printer -Name SGCP1
- Update the driver using the Set-Printer cmdlet:
Set-Printer -Name $Printer.Name -DriverName 'HP LaserJet 9000
PS Class Driver'
- Observe the results:
Get-Printer -Name SGCP1 ` -ComputerName PSRV