Blog Post

Windows IT Pro Blog
1 MIN READ

Introducing the Universal Print PowerShell module

Jimmy_Wu's avatar
Jimmy_Wu
Icon for Microsoft rankMicrosoft
Jun 17, 2020

In an effort to simplify administrative activities and reduce manual interactions with the Universal Print online management portal, we now offer a PowerShell module, which uses the Graph API, you can use to manage some of your Universal Print resources.

We've heard from some of you that automating administrative tasks is preferred, if not indispensable. If you are using Universal Print in preview, you may have noticed that you cannot unregister a Connector, for example, because there is no management portal UI available to do so.

PowerShell scripting is useful for repetitive tasks when managing Universal Print printers, such as granting the same set of users or user groups access to a collection of printers, or for retrieving all properties of printers to export to an archive. The PowerShell module for Universal Print can now be added to your toolbox.

The PowerShell module is supported on any internet-connected Windows 10 device (version 1903 or later) with PowerShell 5.0 or newer. To start using this module, simply install the UniversalPrintManagement PowerShell module per the instructions outlined in the Universal Print PowerShell module documentation and enjoy.

And don't forget to give us feedback! We are still building more features so let us know what you need. It is beneficial to get early feedback so we can plan additional enhancements. You may also be interested in my post from March on enabling the Printer Administrator Role with PowerShell.

 

Updated Feb 02, 2023
Version 4.0
  • Greg_A I verified with the team that an account in Azure AD that is assigned as Global Admin role is supported as long as a Universal Print subscription license is assigned to it.  If the account already has a Universal Print subscription license assigned to it and using PowerShell is failing, please file a support ticket with Microsoft Support so we can better troubleshoot the problem.

  • Greg_A's avatar
    Greg_A
    Iron Contributor

    Jimmy_Wu It's just a cloud account with global admin rights. Excluded from MFA and the like. It's used in automated processes so we're not using regular user's credentials.

  • Greg_A An user account that's part of the Global Admin role should also work.  Please help me understand when you mentioned you are trying with a "service account" that is a global admin, is the account an user object within the Azure AD tenant or something else?  Is the "service account" configured differently from a normal user account that is assigned the Global Admin role?

  • Greg_A's avatar
    Greg_A
    Iron Contributor

    Jimmy_Wu  Does connecting to and using this UP Service require the account that's been connected to have the Printer Administrator role assigned to it? I just tried with a service account that we use that is a global admin and it's receiving an error. Would be helpful to either have that called out or to allow global admins to have that permission.

    It seems the current selected admin account cannot acceess Universal Print