Traditionally, you used scripting to deploy printers. With this method, you create a logon or startup script and deploy this logon script via Group Policies. When machines start up or users log on, the logon script automatically sets up printers.
Once you have set up a shared printer, such as the shared Sales Group
color printer, as shown in this chapter, you can deploy it. There are several ways to automate local client printer deployment, including using PowerShell, WMI, the Printui.dll
utility, and the Wscript.Network
COM object. All of these methods have been in use for a long time and are quite efficient, although PowerShell is the preferred way, naturally.
To deploy a printer to a client, you first need a client computer system. Our demo lab includes a Windows 10 Enterprise client (SG-CL1
), which we use in this recipe. To test this recipe, you need the client computer, the print server (PSVR
), and the domain controller (DC1
).
Once you create the...