{"id":1691,"date":"2023-01-12T09:45:00","date_gmt":"2023-01-12T09:45:00","guid":{"rendered":"http:\/\/neu.koetzingit.de\/citrix-wem-und-die-use-device-mapping-printers-datei\/"},"modified":"2026-06-02T13:32:29","modified_gmt":"2026-06-02T13:32:29","slug":"citrix-wem-und-die-use-device-mapping-printers-datei","status":"publish","type":"post","link":"https:\/\/www.koetzingit.de\/en\/citrix-wem-und-die-use-device-mapping-printers-datei\/","title":{"rendered":"Citrix WEM and the \u201eUse Device Mapping Printers\u201c file."},"content":{"rendered":"<p><span class=\"dropcapmiddle\">D<\/span>Printers can be connected to a Citrix session in various ways. In addition to Microsoft Group Policy, various scripts, and tools, Citrix Workspace Environment Manager (WEM) also offers the option to permanently link endpoints to specific printers. A related feature is also available in Citrix Studio, but here is a brief explanation of how it works with the \u201eUse Device Mapping Printers\u201c file and WEM.<\/p>\n<p><!--more--><\/p>\n<p>What is the actual purpose of the <strong>Use Device Mapping Printers<\/strong> File? The XML file defines a mapping that specifies which endpoints should be automatically connected to which printers. This can include one or more printers, with one designated as the default printer for each. Unfortunately, Citrix does not provide a dedicated tool for generating the XML file, so it must be created manually. The exact format is described in the Citrix article <a title=\"xml-printer-list-configuration\" href=\"https:\/\/docs.citrix.com\/en-us\/workspace-environment-management\/current-release\/reference\/xml-printer-list-configuration.html\" target=\"_blank\" rel=\"noopener\">xml-printer-list-configuration<\/a> can be found in.\u00a0<\/p>\n<p>After working through the XML syntax, one thing stands out, and that is the <strong>IdSite<\/strong>, i.e., the ID of the WEM configuration set being used! That doesn't help right away, though, because the IdSite can't be found anywhere in the WEM console, but without the IdSite, there's no mapping! Well, then let\u2019s try the brute-force method: searching the WEM\u2019s SQL database. The IdSite can be found in the dbo.VUEMSites table.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-1690\" title=\"IdSite in the WEM database\" src=\"http:\/\/www.koetzingit.de\/wp-content\/uploads\/2023\/01\/wem-db-idsite.png\" alt=\"IdSite in WEM DB\" width=\"868\" height=\"129\" srcset=\"https:\/\/www.koetzingit.de\/wp-content\/uploads\/2023\/01\/wem-db-idsite.png 868w, https:\/\/www.koetzingit.de\/wp-content\/uploads\/2023\/01\/wem-db-idsite-300x45.png 300w, https:\/\/www.koetzingit.de\/wp-content\/uploads\/2023\/01\/wem-db-idsite-768x114.png 768w\" sizes=\"auto, (max-width: 868px) 100vw, 868px\" \/><\/p>\n<p>If you don't want to search the database right now, you can also find the IdSite using the WEM PowerShell SDK. On the WEM infrastructure server, run the following command in PowerShell: <code>Get-UserAdObject -InfrastructureServer localhost -SiteName \"Configuration Set\"<\/code>. This section lists all user AD objects for the page, as well as the associated IdSite, which is the same for all of them.<\/p>\n<p>Citrix should address this by providing a tool to generate the XML file and also display IdSite in the console and\/or integrate it directly into the tool.<\/p>","protected":false},"excerpt":{"rendered":"<p>Drucker k\u00f6nnen \u00fcber unterschiedliche Wege in eine Citrix Sitzung verbunden werden. Neben den Microsoft Gruppenrichtlinien, diversen Skripts, Tools gibt es [&hellip;]<\/p>\n","protected":false},"author":1755,"featured_media":1689,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[23],"tags":[27,310,304,308,307,32,154,311,306,305,309],"class_list":["post-1691","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-microsoft-de","tag-citrix","tag-datei","tag-drucker","tag-druckername","tag-endgeraet","tag-microsoft","tag-standard","tag-use-device-mapping-printers-file","tag-verbinden","tag-wem","tag-xml"],"uagb_featured_image_src":{"full":["https:\/\/www.koetzingit.de\/wp-content\/uploads\/2023\/01\/wem.jpg",360,139,false],"thumbnail":["https:\/\/www.koetzingit.de\/wp-content\/uploads\/2023\/01\/wem-150x139.jpg",150,139,true],"medium":["https:\/\/www.koetzingit.de\/wp-content\/uploads\/2023\/01\/wem-300x116.jpg",300,116,true],"medium_large":["https:\/\/www.koetzingit.de\/wp-content\/uploads\/2023\/01\/wem.jpg",360,139,false],"large":["https:\/\/www.koetzingit.de\/wp-content\/uploads\/2023\/01\/wem.jpg",360,139,false],"1536x1536":["https:\/\/www.koetzingit.de\/wp-content\/uploads\/2023\/01\/wem.jpg",360,139,false],"2048x2048":["https:\/\/www.koetzingit.de\/wp-content\/uploads\/2023\/01\/wem.jpg",360,139,false],"trp-custom-language-flag":["https:\/\/www.koetzingit.de\/wp-content\/uploads\/2023\/01\/wem.jpg",18,7,false]},"uagb_author_info":{"display_name":"Thomas K\u00f6tzing","author_link":"https:\/\/www.koetzingit.de\/en\/author\/thomas-koetzing\/"},"uagb_comment_info":0,"uagb_excerpt":"Drucker k\u00f6nnen \u00fcber unterschiedliche Wege in eine Citrix Sitzung verbunden werden. Neben den Microsoft Gruppenrichtlinien, diversen Skripts, Tools gibt es [&hellip;]","_links":{"self":[{"href":"https:\/\/www.koetzingit.de\/en\/wp-json\/wp\/v2\/posts\/1691","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.koetzingit.de\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.koetzingit.de\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.koetzingit.de\/en\/wp-json\/wp\/v2\/users\/1755"}],"replies":[{"embeddable":true,"href":"https:\/\/www.koetzingit.de\/en\/wp-json\/wp\/v2\/comments?post=1691"}],"version-history":[{"count":1,"href":"https:\/\/www.koetzingit.de\/en\/wp-json\/wp\/v2\/posts\/1691\/revisions"}],"predecessor-version":[{"id":1864,"href":"https:\/\/www.koetzingit.de\/en\/wp-json\/wp\/v2\/posts\/1691\/revisions\/1864"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.koetzingit.de\/en\/wp-json\/wp\/v2\/media\/1689"}],"wp:attachment":[{"href":"https:\/\/www.koetzingit.de\/en\/wp-json\/wp\/v2\/media?parent=1691"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.koetzingit.de\/en\/wp-json\/wp\/v2\/categories?post=1691"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.koetzingit.de\/en\/wp-json\/wp\/v2\/tags?post=1691"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}