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

    Anyone Attempting Deploying Printers through SaltStack?

    IT Discussion
    salt saltstack
    11
    53
    4.8k
    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.
    • Emad RE
      Emad R @scottalanmiller
      last edited by

      @scottalanmiller

      I never tested this, but I wondered what If I create VM machine, could be windows server, could be normal windows and installed every printer on it, without any fancy roles.

      And shared the printer from the Windows machine, cause installed printers on windows is easy and you would expect every company to support windows the best.

      Then users would be told to go to ip using windows explorer and double click printer to add it.

      That would work ? right ?

      1 Reply Last reply Reply Quote 0
      • F
        flaxking
        last edited by

        Somewhere in my email I have a PDF about deploying printers via Powershell. My plan was if I ever wanted to create something in salt to deploy printers I would look at that first.

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

          I cast my part-time person to set up printer deployment via power shell. And I know we have that working with a few caveats that still need testing.

          scottalanmillerS 1 Reply Last reply Reply Quote 2
          • scottalanmillerS
            scottalanmiller @JaredBusch
            last edited by

            @jaredbusch said in Anyone Attempting Deploying Printers through SaltStack?:

            I cast my part-time person to set up printer deployment via power shell. And I know we have that working with a few caveats that still need testing.

            We might do that if we can't get this figured out in a better way.

            JaredBuschJ black3dynamiteB ObsolesceO 3 Replies Last reply Reply Quote 0
            • JaredBuschJ
              JaredBusch @scottalanmiller
              last edited by

              @scottalanmiller said in Anyone Attempting Deploying Printers through SaltStack?:

              @jaredbusch said in Anyone Attempting Deploying Printers through SaltStack?:

              I cast my part-time person to set up printer deployment via power shell. And I know we have that working with a few caveats that still need testing.

              We might do that if we can't get this figured out in a better way.

              You can run the powershell with SaltStack so the end result is what you need.

              1 Reply Last reply Reply Quote 1
              • black3dynamiteB
                black3dynamite @scottalanmiller
                last edited by

                @scottalanmiller said in Anyone Attempting Deploying Printers through SaltStack?:

                @jaredbusch said in Anyone Attempting Deploying Printers through SaltStack?:

                I cast my part-time person to set up printer deployment via power shell. And I know we have that working with a few caveats that still need testing.

                We might do that if we can't get this figured out in a better way.

                Something like this should work.
                salt 'host' cmd.powershell 'command'

                scottalanmillerS 1 Reply Last reply Reply Quote 0
                • scottalanmillerS
                  scottalanmiller @black3dynamite
                  last edited by

                  @black3dynamite said in Anyone Attempting Deploying Printers through SaltStack?:

                  @scottalanmiller said in Anyone Attempting Deploying Printers through SaltStack?:

                  @jaredbusch said in Anyone Attempting Deploying Printers through SaltStack?:

                  I cast my part-time person to set up printer deployment via power shell. And I know we have that working with a few caveats that still need testing.

                  We might do that if we can't get this figured out in a better way.

                  Something like this should work.
                  salt 'host' cmd.powershell 'command'

                  Well yes, but that's just running PowerShell and using Salt as the transport. Letter of the approach, but not the intent.

                  1 Reply Last reply Reply Quote 0
                  • ObsolesceO
                    Obsolesce @scottalanmiller
                    last edited by Obsolesce

                    @scottalanmiller said in Anyone Attempting Deploying Printers through SaltStack?:

                    @jaredbusch said in Anyone Attempting Deploying Printers through SaltStack?:

                    I cast my part-time person to set up printer deployment via power shell. And I know we have that working with a few caveats that still need testing.

                    We might do that if we can't get this figured out in a better way.

                    Like what?

                    There's no actual Salt module or Salt states module specifically for printers. This means you'll need to do it via the win_lgpo module and PowerShell.

                    The win_lgpo module uses the local admx/adml files, so make sure those are up to date on your Windows systems if you use any of them.

                    1 Reply Last reply Reply Quote 0
                    • DashrenderD
                      Dashrender @Obsolesce
                      last edited by

                      @obsolesce said in Anyone Attempting Deploying Printers through SaltStack?:

                      @scottalanmiller said in Anyone Attempting Deploying Printers through SaltStack?:

                      That's pretty much it. Windows desktops (and laptops) and we'd like to try using Salt to deploy printers instead of going through traditional Group Policy or login scripts. Anyone attempted this or know the recommended approach?

                      I was thinking of looking in to this because there are some issues where, through Group Policy Preferences, Windows machines do not get printers/copiers deployed to them (via GP) unless the printer's driver had been previously installed.

                      It was only an issue on Win10 machines where the logged in user was not a local admin.

                      SS is good at getting stuff done, so I had thought about looking in to this a while ago, but haven't yet.

                      I solved this with GPO GPP by having a print server with the drivers, so the Win10 machines could reference the print queue for the driver, yet set them up as an IP (direct) printer. You can set the ability to install the drivers even as non admin via GPO as well.

                      ObsolesceO 1 Reply Last reply Reply Quote 1
                      • ObsolesceO
                        Obsolesce @Dashrender
                        last edited by

                        @dashrender said in Anyone Attempting Deploying Printers through SaltStack?:

                        @obsolesce said in Anyone Attempting Deploying Printers through SaltStack?:

                        @scottalanmiller said in Anyone Attempting Deploying Printers through SaltStack?:

                        That's pretty much it. Windows desktops (and laptops) and we'd like to try using Salt to deploy printers instead of going through traditional Group Policy or login scripts. Anyone attempted this or know the recommended approach?

                        I was thinking of looking in to this because there are some issues where, through Group Policy Preferences, Windows machines do not get printers/copiers deployed to them (via GP) unless the printer's driver had been previously installed.

                        It was only an issue on Win10 machines where the logged in user was not a local admin.

                        SS is good at getting stuff done, so I had thought about looking in to this a while ago, but haven't yet.

                        I solved this with GPO GPP by having a print server with the drivers, so the Win10 machines could reference the print queue for the driver, yet set them up as an IP (direct) printer. You can set the ability to install the drivers even as non admin via GPO as well.

                        I am already deploying them via GPP via a print server. I cannot deploy them via TCP/IP, they need to be deployed as "Shared" or the PaperCut software won't work correctly. Unless that's changed within the last 3 years, I have to keep doing it via "Shared" method in Group Policy Preferences.

                        It was working out perfectly for the last few years... it's only recently the issue came up. Something in Win10 changed compared to how it was previously, where any new printers deployed to a computer via GPP where the printer driver wasn't previously installed will not install unless a user with local admin privs logs in to do it first.

                        I'd rather not hijack this thread about that, it's a very infrequent thing because new images have the drivers on them already. So not really worth discussing in a new topic as I'm not worrying about it anymore.

                        I'm still interested in sometime seeing if SaltStack would be able to deploy printers to computers as effectively or more so than current methods. I may look in to it more soon, but the priority is low because things are working fine as they are.

                        I'm mainly focused on getting SaltStack to manage the more global configurations first... before getting into more granular configurations like printer deployments.

                        DashrenderD coliverC 2 Replies Last reply Reply Quote 0
                        • DashrenderD
                          Dashrender @Obsolesce
                          last edited by

                          @obsolesce said in Anyone Attempting Deploying Printers through SaltStack?:

                          @dashrender said in Anyone Attempting Deploying Printers through SaltStack?:

                          @obsolesce said in Anyone Attempting Deploying Printers through SaltStack?:

                          @scottalanmiller said in Anyone Attempting Deploying Printers through SaltStack?:

                          That's pretty much it. Windows desktops (and laptops) and we'd like to try using Salt to deploy printers instead of going through traditional Group Policy or login scripts. Anyone attempted this or know the recommended approach?

                          I was thinking of looking in to this because there are some issues where, through Group Policy Preferences, Windows machines do not get printers/copiers deployed to them (via GP) unless the printer's driver had been previously installed.

                          It was only an issue on Win10 machines where the logged in user was not a local admin.

                          SS is good at getting stuff done, so I had thought about looking in to this a while ago, but haven't yet.

                          I solved this with GPO GPP by having a print server with the drivers, so the Win10 machines could reference the print queue for the driver, yet set them up as an IP (direct) printer. You can set the ability to install the drivers even as non admin via GPO as well.

                          I am already deploying them via GPP via a print server. I cannot deploy them via TCP/IP, they need to be deployed as "Shared" or the PaperCut software won't work correctly. Unless that's changed within the last 3 years, I have to keep doing it via "Shared" method in Group Policy Preferences.

                          It was working out perfectly for the last few years... it's only recently the issue came up. Something in Win10 changed compared to how it was previously, where any new printers deployed to a computer via GPP where the printer driver wasn't previously installed will not install unless a user with local admin privs logs in to do it first.

                          I'd rather not hijack this thread about that, it's a very infrequent thing because new images have the drivers on them already. So not really worth discussing in a new topic as I'm not worrying about it anymore.

                          I'm still interested in sometime seeing if SaltStack would be able to deploy printers to computers as effectively or more so than current methods. I may look in to it more soon, but the priority is low because things are working fine as they are.

                          I'm mainly focused on getting SaltStack to manage the more global configurations first... before getting into more granular configurations like printer deployments.

                          I only mentioned Direct IP printing because that's what I'm doing, but shared should work just as well.

                          1 Reply Last reply Reply Quote 0
                          • coliverC
                            coliver @Obsolesce
                            last edited by

                            @obsolesce said in Anyone Attempting Deploying Printers through SaltStack?:

                            It was working out perfectly for the last few years... it's only recently the issue came up. Something in Win10 changed compared to how it was previously, where any new printers deployed to a computer via GPP where the printer driver wasn't previously installed will not install unless a user with local admin privs logs in to do it first.

                            That changed early last year. New drivers now need to be signed and it is taking printer manufactures forever to get them signed the way Microsoft wants them to... it's bitten us more then once.

                            1 Reply Last reply Reply Quote 2
                            • F
                              flaxking
                              last edited by flaxking

                              I've created a Salt execution module before, and it wasn't that hard, anyone with a bit of Python experience should be able to make one. I imagine a state module wouldn't be much harder.

                              • Here is how I would tackle this:
                                • Take a look at how you would do this in powershell
                                  • Use Process Monitor so see anything behind the scenes that is being done
                                • If Powershell isn't enough, reverse engineer lgpo
                                  • I haven't done this before so I don't know if there might be a better way to do this other than
                                  • Process Monitor
                                • Look at the Salt source code to see what interfaces they provide to interacting with Windows already
                                • Create module
                              scottalanmillerS 1 Reply Last reply Reply Quote 2
                              • scottalanmillerS
                                scottalanmiller @flaxking
                                last edited by

                                @flaxking that thought had crossed my mind, and as we use Salt broadly with many clients, it could easily make sense to invest the time in that.

                                F 1 Reply Last reply Reply Quote 0
                                • wrx7mW
                                  wrx7m @Obsolesce
                                  last edited by

                                  @obsolesce said in Anyone Attempting Deploying Printers through SaltStack?:

                                  @scottalanmiller said in Anyone Attempting Deploying Printers through SaltStack?:

                                  That's pretty much it. Windows desktops (and laptops) and we'd like to try using Salt to deploy printers instead of going through traditional Group Policy or login scripts. Anyone attempted this or know the recommended approach?

                                  I was thinking of looking in to this because there are some issues where, through Group Policy Preferences, Windows machines do not get printers/copiers deployed to them (via GP) unless the printer's driver had been previously installed.

                                  It was only an issue on Win10 machines where the logged in user was not a local admin.

                                  SS is good at getting stuff done, so I had thought about looking in to this a while ago, but haven't yet.

                                  Did the issue with GPP and Windows 10 have to do with the point to print issue and the driver not being a packaged driver?

                                  1 Reply Last reply Reply Quote 0
                                  • F
                                    flaxking @scottalanmiller
                                    last edited by

                                    @scottalanmiller This makes me miss my old job. I was working on replacing all of our GPOs with Salt and printer deployment was coming up. However, as a solo SMB IT employee, I had an insane amount of time on my hands.

                                    scottalanmillerS wrx7mW 2 Replies Last reply Reply Quote 1
                                    • scottalanmillerS
                                      scottalanmiller @flaxking
                                      last edited by

                                      @flaxking said in Anyone Attempting Deploying Printers through SaltStack?:

                                      @scottalanmiller This makes me miss my old job. I was working on replacing all of our GPOs with Salt and printer deployment was coming up. However, as a solo SMB IT employee, I had an insane amount of time on my hands.

                                      We're more the opposite - needing to invest in good management to ensure we are not too busy later.

                                      1 Reply Last reply Reply Quote 1
                                      • wrx7mW
                                        wrx7m @flaxking
                                        last edited by

                                        @flaxking said in Anyone Attempting Deploying Printers through SaltStack?:

                                        @scottalanmiller This makes me miss my old job. I was working on replacing all of our GPOs with Salt and printer deployment was coming up. However, as a solo SMB IT employee, I had an insane amount of time on my hands.

                                        I am a solo SMB employee and have no time on my hands. 😐 We just hired about 10 people in the last 4 weeks and 2 start in a week and 2 more possibly the week after. No real time to do anything more than setup new employees.

                                        F black3dynamiteB 2 Replies Last reply Reply Quote 1
                                        • F
                                          flaxking @wrx7m
                                          last edited by

                                          @wrx7m said in Anyone Attempting Deploying Printers through SaltStack?:

                                          @flaxking said in Anyone Attempting Deploying Printers through SaltStack?:

                                          @scottalanmiller This makes me miss my old job. I was working on replacing all of our GPOs with Salt and printer deployment was coming up. However, as a solo SMB IT employee, I had an insane amount of time on my hands.

                                          I am a solo SMB employee and have no time on my hands. 😐 We just hired about 10 people in the last 4 weeks and 2 start in a week and 2 more possibly the week after. No real time to do anything more than setup new employees.

                                          What makes new employee setup so labour intensive at your SMB?

                                          I used to get notified of new employees on their start day :ogre:

                                          On my to-do list was to make a way for HR to handle most of what was required with new employees. A lot of stuff required pairs more nicely with HR than with IT, IT just need to provide a friendly abstraction on top of automation for them to use.

                                          scottalanmillerS 1 Reply Last reply Reply Quote 0
                                          • scottalanmillerS
                                            scottalanmiller @flaxking
                                            last edited by

                                            @flaxking said in Anyone Attempting Deploying Printers through SaltStack?:

                                            @wrx7m said in Anyone Attempting Deploying Printers through SaltStack?:

                                            @flaxking said in Anyone Attempting Deploying Printers through SaltStack?:

                                            @scottalanmiller This makes me miss my old job. I was working on replacing all of our GPOs with Salt and printer deployment was coming up. However, as a solo SMB IT employee, I had an insane amount of time on my hands.

                                            I am a solo SMB employee and have no time on my hands. 😐 We just hired about 10 people in the last 4 weeks and 2 start in a week and 2 more possibly the week after. No real time to do anything more than setup new employees.

                                            What makes new employee setup so labour intensive at your SMB?

                                            We onboard something like 5-6 per day, seven days a week, for just a single client 🙂 10 in four weeks would be a vacation. We had five leave just since noon today!

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