Quantcast
Channel: Remote Desktop Services (Terminal Services) forum
Viewing all articles
Browse latest Browse all 25525

Renaming printer in win2008 when user is member of printer operators group does not work

$
0
0

Object.renameprinter doesn't seem to be working for me in a script on windows 2008 TS

I have a situation where we have a number of users using remote app where they have plain paper and label printers attached to their local pcs and no vpn connection between the sites... so the only way to print is using the TS connection. The app needs to be able to print to a fixed printer name so that labels come out on the label printer and reports come out on plain paper. It has a printer pre selection mechanism - much like MS Dynamics Nav and other ERP's - which works by name. Users are limited to a single session per account so I can construct a unique name. I'm happy to live with the users being print operators on this box.

I took one of the many vb scripts available on the net and adapted it to my needs. One example is this basic one from the scripting guy http://blogs.technet.com/b/heyscriptingguy/archive/2005/07/08/how-can-i-use-a-script-to-rename-a-printer.aspx 

I found a posting on this forum indicating that the mechanism had changed in 2008: http://social.technet.microsoft.com/Forums/en-US/winserverTS/thread/288f1a5c-912c-42a2-a7ce-3bae6f13818e/

However, even adding a user or the admin account to the print operators group does not allow printer renaming using a user or admin account. 

Obj.renameprinter executes but doesn't generate an error, nor does it rename the printer.

Does anyone know how this new mechanism works or know if there is a workaround?

One option would be to dynamically share the printers using a unique name, like \\server\label-printer-on-pc-john-doe - anyone know what rights a user would have to have to be able to do this?

 

regards

Ian Murphy


Viewing all articles
Browse latest Browse all 25525

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>