Connecting to network printer(s) using net use

I was asked to add pinters to all users on a terminal server. There is a VPN connection between the terminal server and the network where the printer is installed.

I do not have much experience with network shares, but I managed to connect to the printer manually. (win+r > \192.168.xx.xx). After entering my credentials (Domain: ADAM.local) I see the shares in explorer, including a couple of printers. Double-clicking a printer adds it to the "printers and devices" and I am able to select it as a printer wehn trying to print a document.

I was hoping to be able to use "net use" to write a script that will connect a user to the printer on startup.

I tried using net use * \\192.168.xx.xx <password> /user:ADAM.local\printACC /persistent:yes to connect to the network share. This results in an error: System error 67 has occurred. The network name cannot be found.

Could anyone help me with the syntax and parameters for the net use command?


Terminal server maps/sets the default client printers from the desktop it connects from as default in user session.

To make this work You need to make sure that on the terminal server only the printer driver is installed. Install both 32 and 64 bit version. No need to map. adding just drivers to terminal server

Make sure that the terminal server settings allow printer mapping. leave checkbox UNCHECKED. enter image description here

The printing goes from the terminal server via the rdp protocol to the printer through the client.

Another options is to install all the printers as administrator on the server. They will be available to all users. However I do not recommend this. I think it is better to always redirect user to his default printer.