ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Server 2016 Redirected Printer Change

    Scheduled Pinned Locked Moved IT Discussion
    rdsserver 2016printer redirectionepicor
    11 Posts 5 Posters 10.6k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • dbeatoD
      dbeato
      last edited by

      This is what I did, created the following script

      $key = 'HKCU:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Windows\SessionDefaultDevices'
      $keyproperty = Get-ChildItem -path $key | Select-Object Name
      $keyenv = $keyproperty.Name
      Copy-ItemProperty -path Registry::$keyenv -destination 'HKCU:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Windows\' -Name Device
      
      

      Then Setup a script to run 10 Seconds after login through the Task Scheduler

      %SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Unrestricted -Command C:\scripts\Set-Printer-Default.ps1
      
      1 Reply Last reply Reply Quote 1
      • dbeatoD
        dbeato
        last edited by

        It has also been shown on other posts:
        https://forums.adobe.com/thread/2399959
        https://support.citrix.com/article/CTX104375
        https://support.microsoft.com/en-us/help/929270/you-cannot-set-a-redirected-printer-as-the-default-printer-in-a-window
        https://support.microsoft.com/en-us/help/2620656/invalid-redirected-printers-may-be-available-in-a-remote-desktop-servi

        1 Reply Last reply Reply Quote 1
        • FiyaFlyF
          FiyaFly
          last edited by

          Reached out to @NetworkNerd, whether just for info for him or he might be able to help understand this. He has been quite the expert on Epicor for a while.

          dbeatoD 1 Reply Last reply Reply Quote 1
          • dbeatoD
            dbeato @FiyaFly
            last edited by

            @fiyafly said in Server 2016 Redirected Printer Change:

            Reached out to @NetworkNerd, whether just for info for him or he might be able to help understand this. He has been quite the expert on Epicor for a while.

            Yeah, I have known he is an Epicor Expert, this is actually Prophet21 but this does not only affect Epicor programs it also affects any other program trying to get the default printer from the HKCU:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Windows registry key.

            JaredBuschJ 1 Reply Last reply Reply Quote 1
            • JaredBuschJ
              JaredBusch @dbeato
              last edited by

              @dbeato /cry

              0_1528816607160_6efc45fd-7e74-4218-8505-98eccb9b7efc-image.png

              dbeatoD 1 Reply Last reply Reply Quote 1
              • dbeatoD
                dbeato @JaredBusch
                last edited by

                @jaredbusch said in Server 2016 Redirected Printer Change:

                @dbeato /cry

                0_1528816607160_6efc45fd-7e74-4218-8505-98eccb9b7efc-image.png

                Yup, they are on 18.1.3190

                1 Reply Last reply Reply Quote 0
                • SmithErickS
                  SmithErick
                  last edited by SmithErick

                  This might be the issue I am facing with a newly spun up Server 2016 Remote Desktop server. Sage 300 CRE relies on a default printer and acts fishy along with odd printer (control panel) issues.

                  dbeatoD 1 Reply Last reply Reply Quote 1
                  • dbeatoD
                    dbeato @SmithErick
                    last edited by

                    @smitherick said in Server 2016 Redirected Printer Change:

                    This might be the issue I am facing with a newly spun up Server 2016 Remote Desktop server. Sage 300 CRE relies on a default printer and acts fishy along with odd printer (control panel) issues.

                    Might be worth a try to check on it.

                    1 Reply Last reply Reply Quote 0
                    • NetworkNerdN
                      NetworkNerd
                      last edited by

                      That's a new one I have not seen. We used Epicor ERP 10, and in that product I did see issues with RemoteApp where from time to time the user would not have a default printer selected in Epicor (sounds weird, I know), which would then crash any report they tried to print with an error that value of -1 was not allowed. Getting the user to change the printer to something in their list was the workaround.

                      Thanks for capturing this. I bet it will help someone else and looks to be already doing so.

                      dbeatoD 1 Reply Last reply Reply Quote 0
                      • dbeatoD
                        dbeato @NetworkNerd
                        last edited by

                        @networknerd said in Server 2016 Redirected Printer Change:

                        That's a new one I have not seen. We used Epicor ERP 10, and in that product I did see issues with RemoteApp where from time to time the user would not have a default printer selected in Epicor (sounds weird, I know), which would then crash any report they tried to print with an error that value of -1 was not allowed. Getting the user to change the printer to something in their list was the workaround.

                        Thanks for capturing this. I bet it will help someone else and looks to be already doing so.

                        YEah, that is what happens for this case, the RemoteApp shows the printer as a question mark. Once you go to File, Printer Setup and DoubleClick the printer then it is all good for the printer but all reporting shows in Portrait mode instead of Landscape mode.

                        1 Reply Last reply Reply Quote 0
                        • 1 / 1
                        • First post
                          Last post