• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Print management issue: cannot remove printer.

    Scheduled Pinned Locked Moved Unsolved
    FOG Problems
    4
    22
    4.6k
    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.
    • S
      Sebastian Roth Moderator
      last edited by

      @dambron Sorry this has been unanswered for some days. I’ve had this on my list but couldn’t find the time to spin up a test setup as I don’t usually have windows clients around.
      @Moderators Is anyone of you able to replicate this issue?

      Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

      Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

      dambronD 1 Reply Last reply Reply Quote 0
      • Wayne WorkmanW
        Wayne Workman
        last edited by

        @dambron said in Print management issue: cannot remove printer.:

        after manual removal, I’m guessing due to registry entries for the printer.

        Sounds like group policy is adding the printer. If the FOG Client were doing it, it’d be plainly written in the fog log.

        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
        Daily Clean Installation Results:
        https://fogtesting.fogproject.us/
        FOG Reporting:
        https://fog-external-reporting-results.fogproject.us/

        dambronD 1 Reply Last reply Reply Quote 1
        • dambronD
          dambron @Wayne Workman
          last edited by

          @Wayne-Workman said in Print management issue: cannot remove printer.:

          @dambron said in Print management issue: cannot remove printer.:

          after manual removal, I’m guessing due to registry entries for the printer.

          Sounds like group policy is adding the printer. If the FOG Client were doing it, it’d be plainly written in the fog log.

          The test group for this print issue happens to be an IT training room with 12 identical machines. I only added the printer to 4 of them via FOG and the others don’t have any printers managed or showing up. All the machines belong to the same OU, so it’s not a policy being applied at the computer level. It’s also not at the user level because I’ve tried a multitude of users and we don’t use GPO to manage any print settings at all generally. For the heck of it I browsed through and don’t see any local group policies that were applied, so I don’t think it has anything to do with GPO at all.

          1 Reply Last reply Reply Quote 0
          • dambronD
            dambron @Sebastian Roth
            last edited by dambron

            @Sebastian-Roth said in Print management issue: cannot remove printer.:

            @dambron Sorry this has been unanswered for some days. I’ve had this on my list but couldn’t find the time to spin up a test setup as I don’t usually have windows clients around.
            @Moderators Is anyone of you able to replicate this issue?

            Even with the FOG client removed and after removing both the printer and computer from the FOG console, the printer still adds any time an account logs in to Windows. So back to my original theory, it’s the registry entry for the printer. Somehow the way that FOG is adding the printer enforces it through the registry for every user after it is added, even if you “remove” it via FOG.

            In order to prove this I flushed out every entry for the printer in the registry using a manual search of the registry, and now the printer no longer automatically adds for every user.

            Just for the hell of it, here’s what the log shows when I add and then “Remove” a printer.

            ------------------------------------------------------------------------------
            --------------------------------PrinterManager--------------------------------
            ------------------------------------------------------------------------------
             6/22/2017 10:58 AM Client-Info Client Version: 0.11.12
             6/22/2017 10:58 AM Client-Info Client OS:      Windows
             6/22/2017 10:58 AM Client-Info Server Version: 1.4.2
             6/22/2017 10:58 AM Middleware::Response Success
             6/22/2017 10:58 AM PrinterManager Adding printers
             6/22/2017 10:58 AM Printer Adding: \\*server*\NCC2100
             6/22/2017 10:58 AM PrinterManager PrintUI return code = 0
             6/22/2017 10:58 AM PrinterManager Invoking add \\*server*\NCC2100 for all users
             6/22/2017 10:59 AM PrinterManager PrintUI return code = 0
             6/22/2017 10:59 AM PrinterManager Restarting spooler
            ------------------------------------------------------------------------------
            
            ------------------------------------------------------------------------------
            --------------------------------PrinterManager--------------------------------
            ------------------------------------------------------------------------------
             6/22/2017 11:01 AM Client-Info Client Version: 0.11.12
             6/22/2017 11:01 AM Client-Info Client OS:      Windows
             6/22/2017 11:01 AM Client-Info Server Version: 1.4.2
             6/22/2017 11:01 AM Middleware::Response Success
             6/22/2017 11:01 AM PrinterManager Adding printers
             6/22/2017 11:01 AM PrinterManager \\*server*\NCC2100 has already been configured
            ------------------------------------------------------------------------------```
            
            ------------------------------------------------------------------------------
            --------------------------------PrinterManager--------------------------------
            ------------------------------------------------------------------------------
             6/22/2017 11:06 AM Client-Info Client Version: 0.11.12
             6/22/2017 11:06 AM Client-Info Client OS:      Windows
             6/22/2017 11:06 AM Client-Info Server Version: 1.4.2
             6/22/2017 11:06 AM Middleware::Response No Printers
            ------------------------------------------------------------------------------
            
            1 Reply Last reply Reply Quote 0
            • S
              Sebastian Roth Moderator
              last edited by Sebastian Roth

              @dambron
              This is what the fog-client used to manage printers on Windows clients. Maybe try calling those by hand and see if it properly cleans it all up. Start a cmd window as Administrator and run:

              rundll32.exe printui.dll,PrintUIEntry /dn /n "\\*server*\NCC2100"
              rundll32.exe printui.dll,PrintUIEntry /gd /n "\\*server*\NCC2100"
              

              Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

              Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

              dambronD 1 Reply Last reply Reply Quote 0
              • dambronD
                dambron @Sebastian Roth
                last edited by

                @Sebastian-Roth said in Print management issue: cannot remove printer.:

                @dambron
                This is what the fog-client used to manage printers on Windows clients. Maybe try calling those by hand and see if it properly cleans it all up. Start a cmd window as Administrator and run:

                rundll32.exe printui.dll,PrintUIEntry /dn /n "\\*server*\NCC2100"
                rundll32.exe printui.dll,PrintUIEntry /gd /n "\\*server*\NCC2100"
                

                Huh, well that seems to work just fine, which I guess makes sense. I know that if you add a printer using

                RUNDLL32 PRINTUI.DLL,PrintUIEntry /ga /z /n\\computername\printername
                

                Then you can’t remove that printer using the traditional add/remove method in Windows, you must run the /dn /gd commands to remove it.

                So it looks like it’s being added properly but the remove command isn’t working for some reason. Very interesting… at least I feel like I understand what’s happening now, if not why! Thanks so much for the assistance.

                Wayne WorkmanW 1 Reply Last reply Reply Quote 0
                • Wayne WorkmanW
                  Wayne Workman @dambron
                  last edited by Wayne Workman

                  @dambron I feel I should add - printer management in fog has different modes. ‘Add only’ will only add printers, not remove.

                  There are two other modes. I don’t remember what they are but - one only manages printers that are in fog, the other only allows fog assigned printers.

                  So for the managed printer to be managed by fog and removed by fog, the printer must still exists in fog, but be removed from the host via fog.

                  The other option is much more tougher in my opinion but suites some well. The last is fog manages all printers on a box - if they are not assigned then fog removes it, doesn’t matter if it’s a fog printer or not. Local usb isn’t possible in this setup without creating a printer of the same name in fog and assigning it. I don’t recommend this option.

                  Looking at the logs, I’d say you are in ‘Add only’ mode.

                  Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
                  Daily Clean Installation Results:
                  https://fogtesting.fogproject.us/
                  FOG Reporting:
                  https://fog-external-reporting-results.fogproject.us/

                  1 Reply Last reply Reply Quote 0
                  • S
                    Sebastian Roth Moderator
                    last edited by

                    @Wayne-Workman good point about the “Add only” mode!

                    @dambron is this still an issue?

                    Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                    Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                    dambronD 1 Reply Last reply Reply Quote 0
                    • dambronD
                      dambron @Sebastian Roth
                      last edited by dambron

                      @Sebastian-Roth

                      http://imgur.com/a/UqKGY

                      I am using the “FOG Managed Printers” option for the group/hosts, as I posted previously. There is no “add only” mode that I see. I see an option for FOG to manage only FOG printers (both add and remove), an option for FOG to manage ALL printers (allows it to add and remove Fog and non-FOG managed printers), and an option for it to manage NO printers. I see that the documentation shows the option for “Add-only” and “Add and Remove” but are you sure this is not out of date? I don’t see those options or descriptions in the Print Management menus for any of my hosts and the configuration settings for Print Management don’t contain anything of the sort either.

                      Also, I’ve tried all the options under that menu, just in case they were incorrectly labeled, and had no different results. The only way for me to remove a printer is by manually running the rundll32.exe print commands on the machine. It seems that the remove commands are not correctly being sent to the host computer via FOG.

                      PS: I feel like I’m taking crazy pills with all of you talking about add-only mode and patting each other on the back for pointing out something that would be hilariously obvious to me if it were set incorrectly… please let me know if this option is located somewhere I’m unaware of because I do not see it located where the documentation says it should be.

                      1 Reply Last reply Reply Quote 0
                      • S
                        Sebastian Roth Moderator
                        last edited by

                        @dambron I am very sorry if it seemed like we were just trying to put you off with this! While being away I got a message from the guy who did all the new client development and he mentioned the “add only” mode just as Wayne did and so I thought I should ask you about it without actually looking into it myself. As I haven’t used the printer management myself I didn’t know that this mode was renamed years ago (Jul 10, 2015). Don’t wanna go back to that so I looked through the current client code again. To me it looks as if the “add only” mode is non existent in the client code anymore.

                        I’ve looked through the code for hours now but I still haven’t found out why it wouldn’t delete the printers anymore. Maybe it’s time to get a windows client installed and try this out myself…

                        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                        dambronD 1 Reply Last reply Reply Quote 0
                        • dambronD
                          dambron @Sebastian Roth
                          last edited by

                          @Sebastian-Roth

                          It’s no problem. I feel bad even making you go through the trouble to look at this, as it’s obviously a lesser used feature. I did find it odd that such a simple thing wasn’t working when every other module/component worked flawlessly. The real reason I would find it useful is that our Helpdesk team manages some business office devices that print checks, tax forms, and sensitive user data. Access to these devices is obviously strictly controlled, but it would be nice if while removing someone’s access centrally we could also cut out their access to peripherals on their network devices.

                          PS: I love FOG, it’s made my life so much better even in the short period of time I’ve been using it. We’re a small shop and so anything that A.) cuts down on field time and B.) works 99% flawlessly on first install is really awesome for me. I’ll bump that up to 100% if we can figure out what is with the printer removal 😛

                          1 Reply Last reply Reply Quote 1
                          • S
                            Sebastian Roth Moderator
                            last edited by

                            @dambron Thanks for your message. Don’t worry, I am sure we will figure this out. Just need some more time to become friends with the client code… will keep you posted.

                            Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                            Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                            1 Reply Last reply Reply Quote 0
                            • S
                              Sebastian Roth Moderator
                              last edited by

                              @dambron Making progress here: https://github.com/FOGProject/fog-client/issues/90

                              Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                              Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                              1 Reply Last reply Reply Quote 0
                              • S
                                Sebastian Roth Moderator
                                last edited by

                                @dambron I just updated the github issue linked below. Would you mind testing the new Modules.dll I uploaded. Find the instructions in the issue comment.

                                Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                                Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                                1 Reply Last reply Reply Quote 0
                                • S
                                  Sebastian Roth Moderator
                                  last edited by Sebastian Roth

                                  I’m posting this just so I don’t forget about it. “Network Printer” and “TCP/IP Port Printer” seem to behave different. fog-client (FOGService) is able to see “TCP/IP Port Printers"?! Need to test this.

                                  ------------------------------------------------------------------------------
                                  --------------------------------PrinterManager--------------------------------
                                  ------------------------------------------------------------------------------
                                   7/26/2017 12:51 PM Client-Info Client Version: 0.11.12
                                   7/26/2017 12:51 PM Client-Info Client OS:      Windows
                                   7/26/2017 12:51 PM Client-Info Server Version: 14
                                   7/26/2017 12:51 PM Middleware::Response Success
                                  ------------------------------------------------------------------------------
                                  
                                  ------------------------------------------------------------------------------
                                  --------------------------------PrinterManager--------------------------------
                                  ------------------------------------------------------------------------------
                                   7/26/2017 12:52 PM Client-Info Client Version: 0.11.12
                                   7/26/2017 12:52 PM Client-Info Client OS:      Windows
                                   7/26/2017 12:52 PM Client-Info Server Version: 14
                                   7/26/2017 12:52 PM Middleware::Response No Printers
                                   7/26/2017 12:52 PM PrinterManager PrintUI return code = 0
                                   7/26/2017 12:52 PM PrinterManager PrintUI return code = 0
                                   7/26/2017 12:52 PM PrinterManager PrintUI return code = 0
                                   7/26/2017 12:52 PM PrinterManager PrintUI return code = 0
                                   7/26/2017 12:52 PM PrinterManager PrintUI return code = 0
                                  ------------------------------------------------------------------------------
                                  
                                  ------------------------------------------------------------------------------
                                  --------------------------------PrinterManager--------------------------------
                                  ------------------------------------------------------------------------------
                                   7/26/2017 12:53 PM Client-Info Client Version: 0.11.12
                                   7/26/2017 12:53 PM Client-Info Client OS:      Windows
                                   7/26/2017 12:53 PM Client-Info Server Version: 14
                                   7/26/2017 12:53 PM Middleware::Response No Printers
                                  ------------------------------------------------------------------------------
                                  
                                  ------------------------------------------------------------------------------
                                  --------------------------------PrinterManager--------------------------------
                                  ------------------------------------------------------------------------------
                                   7/26/2017 12:56 PM Client-Info Client Version: 0.11.12
                                   7/26/2017 12:56 PM Client-Info Client OS:      Windows
                                   7/26/2017 12:56 PM Client-Info Server Version: 14
                                   7/26/2017 12:56 PM Middleware::Response No Printers
                                  ------------------------------------------------------------------------------
                                  
                                  ------------------------------------------------------------------------------
                                  --------------------------------PrinterManager--------------------------------
                                  ------------------------------------------------------------------------------
                                   7/26/2017 12:58 PM Client-Info Client Version: 0.11.12
                                   7/26/2017 12:58 PM Client-Info Client OS:      Windows
                                   7/26/2017 12:58 PM Client-Info Server Version: 14
                                   7/26/2017 12:58 PM Middleware::Response Success
                                   7/26/2017 12:58 PM PrinterManager Adding printers
                                   7/26/2017 12:58 PM Printer Adding: Elem Lab
                                   7/26/2017 12:58 PM PrinterManager PrintUI return code = 0
                                   7/26/2017 12:58 PM PrinterManager Restarting spooler
                                  ------------------------------------------------------------------------------
                                  

                                  Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                                  Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                                  1 Reply Last reply Reply Quote 0
                                  • S
                                    Sebastian Roth Moderator
                                    last edited by

                                    @dambron Did you get to try out the modified DLL I provided?

                                    Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                                    Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                                    1 Reply Last reply Reply Quote 0
                                    • S
                                      Sebastian Roth Moderator
                                      last edited by

                                      @dambron Bumping this…

                                      Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                                      Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                                      1 Reply Last reply Reply Quote 0
                                      • dambronD
                                        dambron
                                        last edited by

                                        Sorry for the delayed response! We were very swamped with semester start at the middle of August, in addition to just opening a new Center for Science and Health Professionals with tons of new hardware. I didn’t get a chance to test out the new DLL but I was planning on it… until a hurricane hit us and we’ve been closed for over a week and won’t reopen until after Labor Day (I’m located in Houston).

                                        I will at some point test it out and let you know how it goes. Until then I will say that FOG has been an absolute champ and has made my life so much easier for this semester start. I have no clue what I would do without it.

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

                                        219

                                        Online

                                        12.0k

                                        Users

                                        17.3k

                                        Topics

                                        155.2k

                                        Posts
                                        Copyright © 2012-2024 FOG Project