{"id":6257,"date":"2022-06-18T03:47:58","date_gmt":"2022-06-18T03:47:58","guid":{"rendered":"https:\/\/pariswells.com\/blog\/?p=6257"},"modified":"2026-03-16T06:21:52","modified_gmt":"2026-03-16T06:21:52","slug":"deploy-direct-printing-queues-via-intune-win32-app","status":"publish","type":"post","link":"https:\/\/pariswells.com\/blog\/code\/deploy-direct-printing-queues-via-intune-win32-app","title":{"rendered":"Deploy Direct Printers Printing Queues via Intune Win32 App"},"content":{"rendered":"\n<p>How to export existing Drivers<\/p>\n\n\n\n<p><a href=\"https:\/\/msendpointmgr.com\/2022\/01\/03\/install-network-printers-intune-win32apps-powershell\/\">How to install Printer Drivers and Printers from Intune using Win32 apps and PowerShell &#8211; MSEndpointMgr<\/a><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">dism \/online \/export-driver \/destination:&lt;path&gt;<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">if exist %SystemRoot%\\System32\\pnputil.exe (\nset \"SystemPath=%SystemRoot%\\System32\"\n) else if exist %SystemRoot%\\Sysnative\\pnputil.exe (\nset \"SystemPath=%SystemRoot%\\Sysnative\"\n) else (\necho ERROR: Cannot find pnputil.exe to install the driver.\necho\/\npause\ngoto :EOF\n)\n%SystemPath%\\pnputil.exe -i -a \"Kx81_UPD\\en\\64bit\\OEMSETUP.inf\"\n\npowershell.exe -command \"Add-PrinterDriver -Name 'Generic 65C-0iSeriesPCL'\"\npowershell.exe -command \"Get-PrinterDriver\"\n\n\npowershell.exe -command \"Add-PrinterPort -Name 'IP_192.168.22.41' -PrinterHostAddress '192.168.22.41'\"\ntimeout \/t 10\npowershell.exe -command \"Add-Printer -Name 'Perth Printer' -PortName IP_192.168.22.41 -DriverName 'Generic 65C-0iSeriesPCL'\"\n\npowershell.exe -command \"Set-PrintConfiguration -PrinterName 'Perth Printer' -PaperSize A4 -Color $false -DuplexingMode TwoSidedLongEdge\"<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">Remove-Printer -Name \"Printer_name\"\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>How to export existing Drivers How to install Printer Drivers and Printers from Intune using Win32 apps and PowerShell &#8211; MSEndpointMgr<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[320,2836],"tags":[2331,4034,2837,2613,845,4033,3856],"class_list":["post-6257","post","type-post","status-publish","format-standard","hentry","category-code","category-intune","tag-deploy","tag-direct","tag-intune","tag-print","tag-printer","tag-printing","tag-win32"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/6257","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/comments?post=6257"}],"version-history":[{"count":7,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/6257\/revisions"}],"predecessor-version":[{"id":9488,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/6257\/revisions\/9488"}],"wp:attachment":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/media?parent=6257"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/categories?post=6257"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/tags?post=6257"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}