Changing a printer name on HP Thin Clients

I have numerous thin clients all with the same zebra lp2844 printer installed on them.  We changed the naming convention about halfway through deployment so some are named correctly (WSName_LP2844) most are still named the default Zebra LP2844.  I need to automatically rename all of the printers to the former naming scheme.  Not sure if this can be done through the rundll32 prtui.dll,printuientry or if it must be done through reg keys.  Doesn't matter how it is done just need some help with this.  Thanks.
PhillipsPlasticsAsked:
Who is Participating?
 
PhillipsPlasticsConnect With a Mentor Author Commented:
RUNDLL32 PRINTUI.DLL,PrintUIEntry /Xs /n "NAME" PrinterName "%COMPUTERNAME%_LP2844"
0
 
PlantwizCommented:
Have you seen this?
Pg 43-44

It appears during the setup phase the descriptive name can be modified.
http://h10032.www1.hp.com/ctg/Manual/c01361922.pdf

0
 
PhillipsPlasticsAuthor Commented:
The HP thinclient has Windows embedded on it so I can manually change it on every workstation we have and commit those changes but since we have around 200 or so of the units across the state I am trying to come up with a way to modify it automatically after they have all been setup and deployed...
0
 
EddieLomaCommented:
SET KEY=HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Printers
SET PRN.NAME=Zebra LP2844
SET PRN.NEWNAME=%COMPUTERNAME%_LP2844

FOR /F "Tokens=8 delims=\" %%I In ('REG QUERY "%KEY%" ^|FIND /I "%PRN.NAME%"') DO IF
NOT "%%I"=="%PRN.NAME%" GOTO :EOF

rundll32.exe PrintUI.DLL,PrintUIEntry /Xs /n "%PRN.NAME%" PrinterName "%PRN.NEWNAME%"
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.