Use a Command Template to add a Printer on Windows Devices

When you run a Windows command in JumpCloud, the command runs as a privileged user. You can use our Windows - Run As Signed In User Template command to run as the user on a Windows device to add a printer.

Considerations:

  • Make sure that the users that use the printer are bound to the print server in JumpCloud. See Bind Users to Devices.
  • When you use this template, you will not get a command output. Instead, you get a PID (process identifier) of the process that ran.

To add a printer:

  1. Log in to the JumpCloud Admin Portal.

Important:

If your data is stored outside of the US, check which login URL you should be using depending on your region, see JumpCloud Data Centers to learn more.

  1. Go to Device Management > Commands.
  2. Click ( + ), then choose Command from Template.
  3. Search for the Windows - Run As Signed In User Template.
  4. Click configure.
  5. In the Command section, replace the #Powershell Command Goes Here. text with the following, updated to reflect your printer information:

    Add-Printer -ConnectionName \\printServer\printerName

    For example, if your print server IP address is 192.168.1.23 and your printer's name is Lexmark, the command would be:

    Add-Printer -ConnectionName \\192.168.1.23\Lexmark

    1. (Optional) Update the Name of the command to something more recognizable to you.
    2. Click Save.
    3. Proceed to run the command on the print server to add the printer to the server. 
    Back to Top

    List IconIn this Article

    Still Have Questions?

    If you cannot find an answer to your question in our FAQ, you can always contact us.

    Submit a Case