VMware Horizon Community
bjnvdb
Contributor
Contributor
Jump to solution

Manage user personal settings network mapped printers through UEM

Can someone please tell me if it is possible to save the personal settings for a network printer? The printers are mapped in the User Environment and Printer Mappings. When a user change a setting for the printer it works until the user logs off. We use non persistant desktops.

For example a user can set a password that one has to enter on the printer before the document is printed. The user has to do this every time a new desktop is assigned.

Tags (1)
1 Solution

Accepted Solutions
maharajan_be
Enthusiast
Enthusiast
Jump to solution

HKEY_CURRENT_USER\Printers stores user preferences for printers

Creating a custom config file and add the below lines

[IncludeRegistryTrees]

HKCU\Printers

pastedImage_2.png

pastedImage_0.png

View solution in original post

Reply
0 Kudos
11 Replies
maharajan_be
Enthusiast
Enthusiast
Jump to solution

HKEY_CURRENT_USER\Printers stores user preferences for printers

Creating a custom config file and add the below lines

[IncludeRegistryTrees]

HKCU\Printers

pastedImage_2.png

pastedImage_0.png

Reply
0 Kudos
ijdemes
Expert
Expert
Jump to solution

Hi bjnvdb​,

I encourage you to use the built-in UEM template for printers. Just go to the Personalization tab and click Create Config File

pastedImage_1.png

Select Use a Windows Common Setting and click Next

pastedImage_3.png

Select Printers - Mapped network printers only and click Next

pastedImage_4.png

Give the file a name and click Finish

This INI file (template) saves the following registry keys/values.

--

#

# Expanded settings for Windows Common Setting 'Printers':

#

[IncludeRegistryTrees]

HKCU\Printers

HKCU\Software\Microsoft\Windows NT\CurrentVersion\Devices

HKCU\Software\Microsoft\Windows NT\CurrentVersion\PrinterPorts

[IncludeIndividualRegistryValues]

HKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows\Device

HKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows\UserSelectedDefault

--

I hope this is enough for your situation. If not, for your situation it maybe the case that additional registry keys/values or files/folders may need to be saved at logoff, depending on your issues/requirements. In that case I recommend you to use the UEM Profiler and/or RegShot and/or ProcMon to track down the required registry keys/values and/or files/folders.

I hope this helps you a bit further.


\\ Ivan
---
Twitter: @ivandemes
Blog: https://www.ivandemes.com
Gadjimurad
Contributor
Contributor
Jump to solution

Hello.

Did as written here. When I log into the session and run regedit, I see printers that should appear, but they are not.

Here they write that you need another bat file.

How did you earn please describe.

https://securelink.be/blog/how-to-configure-printers-with-user-personalization-through-uem/

Reply
0 Kudos
DEMdev
VMware Employee
VMware Employee
Jump to solution

Hi Gadjimurad,

The page you linked to describes a much more complex scenario than what was dealt with in this thread. What exactly are you looking for?

Reply
0 Kudos
Gadjimurad
Contributor
Contributor
Jump to solution

I am testing UEM 9.2. I'm trying to set up a network printer in the "Personalization" section. I do as in this thread, I add these lines:

HKCU \ Printers

HKCU \ Software \ Microsoft \ Windows NT \ CurrentVersion \ Devices

HKCU \ Software \ Microsoft \ Windows NT \ CurrentVersion \ PrinterPorts

[IncludeIndividualRegistryValues]

HKCU \ Software \ Microsoft \ Windows NT \ CurrentVersion \ Windows \ Device

HKCU \ Software \ Microsoft \ Windows NT \ CurrentVersion \ Windows \ UserSelectedDefault

Then, when I connect to a remote computer and open tree in regedit, I see that my printers are moving along with my profile, but I don’t see them in Devices and Printers. I see only what was in the golden image. I even tried to take this regedit file (flex) and integrate it with another VM, and even in this case I do not see printers, although the registry accepted the changes.

Reply
0 Kudos
Gadjimurad
Contributor
Contributor
Jump to solution

In my understanding, it works like this. I connect to the floating pool and add 2 printers. The next day I connect to another VM and should see my 2 printers. Maybe I'm wrong.

Reply
0 Kudos
Ray_handels
Virtuoso
Virtuoso
Jump to solution

Are you using Appvolumes writable volumes? And most importantly the Profile + UIA?

Gadjimurad
Contributor
Contributor
Jump to solution

No, I do not use APP Volume at all. I am trying to customize personalization using only UEM. I created a folder for sharing the profiles and I specified in the GPO to store profile data there. And set up personalization in UEM. The scheme is very simple. Now I am testing the personal settings of the operating system. The desktop icons and design works, so I want to set up personal saving of a network printer. The necessary drivers are installed. When creating the pool, I also disabled the disposable file redirection.

pastedImage_0.png

This is my GPO settings at all. And what I sent above.

pastedImage_2.png

pastedImage_3.png

I went in and added the T520 printer. Then it came out and went back, but already on the other VM, but my printer did not appear. Olso the all history saved.

Reply
0 Kudos
Ray_handels
Virtuoso
Virtuoso
Jump to solution

Do you actually see the printers.zip file on the location you set as the userprofile location? Trying to find the cirrect settings, my russian is a little rusty.. Smiley Happy

I believe it should be in the \\PMUEM\UEM_Profiles\%username%\archives\Windows Settings. If the .zip file isn't there it is not being written away, for whatever reason..

Reply
0 Kudos
Gadjimurad
Contributor
Contributor
Jump to solution

The file is and it is relevant. I decided to check if the printer was added to the VM by connecting directly without connecting the server. I see that the printer has been added. This means that when I add a printer it is added not for the user session, but added to the VM.

It seems I understood my mistake. I thought that the printer is added to the VM when the user connects. Personalization means that the printer is already there, and UEM saves the settings that I will do with this printer. And I can connect it either by installing all the printers of the department on a gold image and distributing it or using the GPO domain.
I'm right?

Reply
0 Kudos
elproductoONE
Contributor
Contributor
Jump to solution

Hi ijdemes​,

Thanks for providing the steps to create a config file to capture end user printers mapped manually.  I followed these steps to create a config file.  However, for some reason printer mapped directly via TCP/IP do not get restored, unless I disable the config file generated post capturing printer mappings. Which seems very weird.  Is there any setting you recommend I tweak to ensure TCP/IP printers are restored at login?

Reply
0 Kudos