I have been working with UP for some time now and for different reasons we had to install new UP connectors. If you want to remove a old connector not in use, you cannot remove it in the UP portal. But PowerShell is the place to sort it out. In addition, when you have many UP printers, and you want to push them to your users with Intune, you need to create CSV-file with the ShareID and Name. And if you have many, you want to collect the information fast and easy.
# Clear the shell
cls
# Installing the module needed for connecting to Universal Print
Install-Module UniversalPrintManagement
# Creating a variable for the global admin username
$user = Read-host “Type in your admin-account”
# The script ask for the password to the account and saves it in a variable
$cred = get-credential -credential $user
# Connecting to the UP service
Connect-UPService -credential $cred
# Get a list of all your connectors
Get-UPConnector | fl
# Get a list of all your Universal Print printers with their ShareID
Get-UPPrinter | select -ExpandProperty share | select ShareID, ShareName
# Remove a connector based on it's ID
Remove-UPConnector -ConnectorId 6ebb0bfa-0add-4025-93bc-3c183476e7e4
Comments