Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 437
  • Last Modified:

IP Printing and allowing users to Click and Install a printer Via Web page or Sharepoint

the scenario:

Lets say I have two sites Denver and Houston, each location I have 100 printers, currently to install a printer for an end user we either remotely install a printer using windows explorer or have an onsite tech visit the workstation. We do not use shared printers or publish the printers to AD. instead each printer has it own NIC Card and we create a local TCP/IP port on the PC. Example HP LJ 4050TN port IP_192.168.1.100. I would like to enable the user to have the ability to install their own printers by going to a webpage or sharepoint site. The Idea is - the user in houston can click on a Houston Page and there would be all of the printers listed. The user would then click on the printer and the Printer driver and the corresponding TCP/IP port would then get installed. We are a XP and Windows 7 shop currently migrating of to Win7

Any Idea's
0
youngrmy
Asked:
youngrmy
  • 2
1 Solution
 
IanThCommented:
see
http://www.makeuseof.com/tag/add-print-button-web-page/
and
http://dmacattack.wordpress.com/2004/12/16/windows-remote-printer-installations-made-easy/
for 32bit systems
and
http://social.msdn.microsoft.com/Forums/en/windowsgeneraldevelopmentissues/thread/ade364a2-fd7e-4d6a-8e8f-29e76cf58356
for windows 7

that should point you in the correct direction as then you need to somehow make the button click use a script to install the printer
0
 
youngrmyAuthor Commented:
Thanks for the Help, Those links did point me in the correct direction

The result - I was able to create a sharepoint site, Created a shortcut to the Script, and the Printers are self installing when clicked



strComputer = "."
Set objWMIService = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
set objNewPort = objWMIService.get("Win32_TCPIPPrinterPort").SpawnInstance_
Set objPrinter = objWMIService.Get("Win32_Printer").SpawnInstance_
objWMIService.Security_.Privileges.AddAsString "SeLoadDriverPrivilege", True
Set objDriver = objWMIService.Get("Win32_PrinterDriver")
objDriver.Name = "Driver name from INF File"
objDriver.SupportedPlatform = "Windows NT x86"
objDriver.Version = "3"
objDriver.FilePath = "K:\\DRIVERS\\Canon Copier\\pcl6"
objDriver.Infname = "K:\\DRIVERS\\Canon Copier\\pcl6\\P62KUSAL.INF"
intResult = objDriver.AddPrinterDriver(objDriver)

'Installs Printer Port
objNewPort.Name = "Printer IPAddress"
objNewPort.Protocol = 1
objNewPort.HostAddress = "Printer IPAddress"
objNewPort.PortNumber = 9100
objNewPort.SNMPEnabled = True
objNewPort.Put_

'Install Printer
objPrinter.DriverName = "Driver name from INF File"
objPrinter.PortName = "Printer IPAddress"
objPrinter.DeviceID = "Driver name from INF File"
objPrinter.Location = "Type in the Location information Here"
objPrinter.Network = True
objPrinter.Put_
0
 
IanThCommented:
glad I could help
0

Featured Post

Configuration Guide and Best Practices

Read the guide to learn how to orchestrate Data ONTAP, create application-consistent backups and enable fast recovery from NetApp storage snapshots. Version 9.5 also contains performance and scalability enhancements to meet the needs of the largest enterprise environments.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now