Announcement

Collapse
No announcement yet.

Script for installing Network Printers

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Script for installing Network Printers

    I am currently trying to write a script that will "simplify" installing printers for our level 1 support. We have 3 common printers that I've used the Pnputil.exe to install the drivers in /driverstor and i am trying to make use of the rundll32 printui feature.. The printers are connecting directly to the LAN and the only switch i see that could do this is the /in. The issue is I cant find any examples for doing this with an IP address. I get an error saying the driver is not found yet I have verified they have been installed in the DRIVERSTOR since this works when I add the printer via the wizard.

    Any help would be appreciated.

  • #2
    Re: Script for installing Network Printers

    It depends on your network. If you've a 2008 server you can use group policy preferences to take the hassle out of it.

    On 2003 servers we use Kix Scripts. With this you can install the IP printer to the server (could be any machine really) and then automatically connect the computers up to the shared printer. You can do all sorts of more advanced things and make it user or station aware, or just use it to connect the printer to everyone.

    Comment


    • #3
      Re: Script for installing Network Printers

      Unfortunately in our IT world we do not have servers at my level.. All the servers are maintained by the T3 Support. Getting them to setup something like that would be "out of their scope of support." I would have no issue trying to do something like that myself but "any server has to be moved to their location" then I have to submit trouble tickets everytime i need something done ( up to a 5 business day resolve time.)

      Comment


      • #4
        Re: Script for installing Network Printers

        It doesn't need to be a server. You could have a PC with file/printer sharing on it and just don't tell them

        You could put kix on a share on a PC and have them manually run a batch file from the share. Kix is literally an exe and a dll from memory. Alternatively you could put the kix executables onto every PC and have L1 carry the batch file round on the pen drive. You would still need somewhere to share the printers from though.

        Comment


        • #5
          Re: Script for installing Network Printers

          The following sites might be of help:

          http://support.microsoft.com/kb/314486

          http://www.robvanderwoude.com/2kprintcontrol.php

          Create some batch file, and let the user click on it to install the printer.
          gerth

          MCITP sa, ea & va, sysadmin@cydonia.

          Comment


          • #6
            Re: Script for installing Network Printers

            Originally posted by ArmyITGuy View Post
            The printers are connecting directly to the LAN <...>

            I've used the Pnputil.exe to install the drivers in /driverstor
            Is there a reason for not using a Print Server on the network that shares the printers?
            Are all desktop computers member of the domain?


            Originally posted by beddo View Post
            If you've a 2008 server you can use group policy preferences to take the hassle out of it.
            The clients apparently are Vista or Windows 7 machines, so with RSAT on just one of the clients he can use Group Policy Preferences. Still however it requires the printer is shared on the network which, if I understood the question correctly, they are not.


            /Rems
            Last edited by Rems; 28th April 2011, 10:57.

            This posting is provided "AS IS" with no warranties, and confers no rights.

            __________________

            ** Remember to give credit where credit's due **
            and leave Reputation Points for meaningful posts

            Comment


            • #7
              Re: Script for installing Network Printers

              Originally posted by Rems View Post
              The clients apparently are Vista or Windows 7 machines, so with RSAT on just one of the clients he can use Group Policy Preferences. Still however it requires the printer is shared on the network which, if I understood the question correctly, they are not.
              I checked and can't find a reference to what OS the clients are running in the thread.

              Agreed that having something sharing the printers makes it a whole lot simpler though.

              Comment


              • #8
                Re: Script for installing Network Printers

                The version of the Os is vista. And yes a print server would be the most practical idea. But we do not have the authority to setup a print server nor access to the servers to use a group policy.

                As I appreciate your help in coming up with additional ways to do what I am trying to do, I assure you, I have already thought of them and am not able to do this. This is a DoD network and as beddo suggested, just install it without the higher tiers knowing is not a resolution.

                As far as a print server.. an admin still has to connect to the printer the first time for the user to connect. which is why I used pnputil to install the drivers.

                After some research on the rundll32 printui.dll,printuientry it seems when installing a network printer and using a tcp/ip port, it does not create this port like it does when using the 'prinrt install wizard.'

                So i guess my question is now do you know how to created a tcp/ip port for printers via the command line?

                Comment


                • #9
                  Re: Script for installing Network Printers

                  prnport.vbs can be used to create a port

                  http://technet.microsoft.com/en-us/l.../bb490975.aspx
                  gerth

                  MCITP sa, ea & va, sysadmin@cydonia.

                  Comment

                  Working...
                  X