1.

Solve : Regedit string value data prefixes?

Answer»

Hi, I want set adobe reader "print as image" for all printer by default.
How to do it? For one printer I can do with this string:
reg ADD "HKCU\Software\Adobe\Acrobat Reader\11.0\General\cPrintAsImage" /V t1 /t REG_SZ /d "HP LaserJet 1018 (redirected 1578)" /f

I want to set from 1578 to any value, like this: HP LaserJet 1018 (redirected "*")So your looking for code to read in a value from a parameter within that local system and pass that value to a registry change replacing xxxx with the value read in, specific to that system?

Quote

reg add "HKCU\Software\Adobe\Acrobat Reader\11.0\General\cPrintAsImage" /v t1 /t REG_SZ /d "HP LaserJet 1018 (redirected xxxx)" /f

If so, where does this value reside that you need to read it in from at the local system, and is this value to be read in always at that target location or could it be in different places depending on the printer model or driver etc? More info needed!

I am assuming you are system admin as well so you wont be running this from a user privilege, but as admin at each of the systems to implement?Hi thank you for your reply.
Yes, I'm system ADMINISTRATOR and I solved it.
People working on terminal and when they login to server always changing "redirect value" so I can't to write all.. can be hp laser jet 1020 (redirected 19) or hp laser jet 1020 (redirected 1900) and etc..
So I wrote a script which copy all printers names to file, next step script read from file and copy names to registry.
I put this script on group policy log on and every time, when user login to server, it get new value in registry
Sorry, my english isn't perfect, but I hope you understood me


Discussion

No Comment Found