How it works...

In step 1, you add the Print-Server feature and the management tools to PSRV. To do this, open a PowerShell window on the PSRV host and install the Print-Server feature. You can either do this directly or remotely, and you can use the PowerShell console or the ISE directly from the Print-Server. The output looks like this:

In step 2, you add a new port for the color printer you wish to add. In step 3, you add the PrinterDriver for the printer (in our case, an NEC Color MultiWriter Class Driver). In step 4, you add a new printer, SGCP1, to the system. You use the PrinterDriver and printer port you created for this new printer. In step 5, you share the printer. A shared printer enables users to connect to the printer and print to the associated print device. Windows bases permissions for the printer on the Discretionary Access Control List (DACL), which you set up when you create the printer. Another recipe later in this chapter shows you how you can view and update the DACL for a printer. There is no output for step 2, step 3, step 4, and step 5.

Once you have created and shared the printer, you can view the results. In step 6, you view the printer port, printer driver, and printer. Note that the printer is shared in the following output: