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

    Group Policy - Printer Deployment

    Scheduled Pinned Locked Moved IT Discussion
    18 Posts 6 Posters 1.3k 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.
    • G I JonesG
      G I Jones @dbeato
      last edited by

      @dbeato Bro, thank you!

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

        Fuck printers.
        Fuck printer servers.
        Fuck GPO based printing.

        pmonchoP scottalanmillerS 2 Replies Last reply Reply Quote 6
        • JaredBuschJ
          JaredBusch
          last edited by JaredBusch

          I'm right in the middle of scripting printer deployment.

          This is the script that I made @TechnicalAngel work out for one of our clients.

          #Jeff City HP 500 Color MFP
          # setup the variables to throughout. These will become parameters.
          $PrinterName = "HP 500 Color"
          $PrinterPort = "10.202.20.23C"
          $PortHost = "10.202.20.23"
          $DriverLocation = "\\someshare\Software\Drivers\Printers\HP_LJPM570\hpcm570u.inf"
          $DriverName = "HP LaserJet 500 color MFP M570 PCL 6"
          
          
          # Import Print Management Module
          Import-Module PrintManagement
          
          # Remove any existing printer port
          # you will see an error is it does not exist, just ignore
          # todo wrap in if statement
          Remove-PrinterPort -name $PrinterPort
          
          # Add the printer port
          Add-PrinterPort -Name $PrinterPort -PrinterHostAddress $PortHost
          
          # Add the driver to the driver store
          # using this because had failures with -InfPath in Add-PrinterDriver
          Invoke-Command {pnputil.exe -a $DriverLocation }
          
          # Add the print driver 
           Add-PrinterDriver -name $DriverName
          
          # Add the printer
          Add-Printer -name $PrinterName -PortName $PrinterPort -DriverName $DriverName
          
          # Set printer to print mono or color
          Set-PrintConfiguration -PrinterName $PrinterName -Color $true
          
          ###Set this printer as the default printer
          $Printers = Get-WmiObject -Class Win32_Printer
          $Printer = $Printers | Where{$_.Name -eq "$PrinterName"} 
          $Printer.SetDefaultPrinter() | Out-Null
          
          B 1 Reply Last reply Reply Quote 3
          • JaredBuschJ
            JaredBusch
            last edited by

            This setting is used to kill that stupid "let Windows manage my default printer" setting.

            Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Windows" -Name "LegacyDefaultPrinterMode" -Value 1 -Force
            
            dbeatoD 1 Reply Last reply Reply Quote 3
            • dbeatoD
              dbeato @JaredBusch
              last edited by

              @jaredbusch said in Group Policy - Printer Deployment:

              This setting is used to kill that stupid "let Windows manage my default printer" setting.

              Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Windows" -Name "LegacyDefaultPrinterMode" -Value 1 -Force
              

              YEp, works pretty good.

              1 Reply Last reply Reply Quote 0
              • B
                bnrstnr @JaredBusch
                last edited by

                @jaredbusch Do you run the script at login?

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

                  @jaredbusch said in Group Policy - Printer Deployment:

                  Fuck printers.
                  Fuck printer servers.
                  Fuck GPO based printing.

                  When did you start working with us????? 🙂

                  Hell, its about time to hire a windows print management specialist anymore!.

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

                    @jaredbusch said in Group Policy - Printer Deployment:

                    Fuck printers.
                    Fuck printer servers.
                    Fuck GPO based printing.

                    This sums it up.

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

                      @scottalanmiller said in Group Policy - Printer Deployment:

                      @jaredbusch said in Group Policy - Printer Deployment:

                      Fuck printers.
                      Fuck printer servers.
                      Fuck GPO based printing.

                      This sums it up.

                      Yet, still unrelated to the topic.

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

                        @bnrstnr said in Group Policy - Printer Deployment:

                        @jaredbusch Do you run the script at login?

                        Still a work in progress right now, so it is manual.

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