Publishing a printer
After you create and share a printer (as shown in the previous recipe), you can also publish it to Active Directory. When you publish a printer, you can also specify a physical location for the printer. Your users can then search for published printers based on location, as well as on capabilities (such as color printing). In this recipe, you publish the printer you created in the previous recipe and examine the results.
Getting ready
Before running this recipe, you need to have the PSRV
printer server set up (you did this in the Installing and sharing printers recipe). Additionally, you need SalesPrinter1
created.
How to do it...
- Getting the printer to publish and store the returned object in
$Printer
$Printer = Get-Printer -Name SalesPrinter1
- Viewing the printer details
$Printer | Format-Table -Property...