cancel
Showing results for 
Search instead for 
Did you mean: 
2 Replies
Joe Arseneau
Valued Advisor
Valued Advisor

Re: Configuring Colorqube 9302 Printer Driver using Powershell

Hi Martin, take a look here and see if it gets you anywhere.

 

What you are doing certainly isn't my specialty, but I think the info contained here may help you get it to work, either in a different way (follow the pdf begin-end) or just use it as a "find where to look" thing.

Please be sure to select "Accept Solution" and or select the thumbs up icon to enter Kudos for posts that resolve your issues. Your feedback counts!

Joe Arseneau
0 Kudos
MSPTestAccount
Account Deactivated

Re: Configuring Colorqube 9302 Printer Driver using Powershell

Thank you Martin.S for using the Community Forum.

The Technical team has looked at your post and has recommended that you contact us at 1-800- 821-2797 to further discuss your issue and troubleshoot.

Please select "Accept Solution" and / or select the thumbs up icon to enter Kudos for posts that resolve your issues. Your feedback counts!
Thanks,
SandyP-Xerox
Moderator
0 Kudos
Martin.S
New Member
New Member

Configuring Colorqube 9302 Printer Driver using Powershell

Product Name: Other - specify product in post

Hello,

 

I am currently working on a Powershell script to automate installing drivers for my Colorqube 9301 and 9302 network printers on my Win10 Clients because I don't have a printserver. So far I've managed to get the drivers installed properly but I can't manage to script a particular property setting. I need to set the driver default that users can only send secure print jobs and a default password. I've already tried setting the default by hand and analyzing registry differences that I could later set using Powershell, but I couldn't find anything useful. Below you can take a look at my Powershell code.

 

Can anyone point me in the right direction on this?

 

Best wishes,

Martin

 

# Xerox ColorQube 9301

$PC = $env:computername
$LKR = "Names of Clients"
if (($LKR -contains $PC) -eq 'True') {

Write-Host "Installiere und konfiguriere Colorqube 9301."  -ForegroundColor Green

# Install Driver

if (-not ((Get-PrinterDriver -Name *9301*).Name -eq 'Xerox Colorqube 9301 PS')) {Start-Process "RunDll32" -ArgumentList 'printui.dll PrintUIEntry /ia /m "Xerox ColorQube 9301 PS" /h "x64" /v "Type 3 - User Mode" /f "\Path_to_driver\x2DTESP.inf"' -Wait

# Create Port

$Port = ([wmiclass]"win32_tcpipprinterport").createinstance()
$Port.Name = "..."
$Port.HostAddress = "..."
$Port.Protocol = "1"
$Port.PortNumber = "9100"
$Port.SNMPEnabled = $false
$Port.Description = "..."
$Port.Put()



# Install Printer

$Printer = ([wmiclass]"win32_Printer").createinstance()
$Printer.Name = "..."
$Printer.DriverName = "..."
$Printer.DeviceID = "..."
$Printer.Shared = $false
$Printer.PortName = "..."
$Printer.Put()

}}
0 Kudos