Jump to content

bainer

Members
  • Posts

    8
  • Joined

  • Last visited

Everything posted by bainer

  1. Using the command line utility, csvde might give you what you need. Csvde
  2. Can you share what you have already?
  3. bainer

    Add Printer

    You're right, you need to get the driver installed first, are you wanting this in the same script? Just that this would require a lot of editing each time you use a new driver. What might be a good option was to build a driver catalogue. This could just be a text or csv on a file share. The script would build an array of installed drivers on the client and compare the list with the central catalogue. If one is missing on the client, the driver could be installed, then the printer added. Does this sound like the kind of thing your looking for?
  4. Hi martinjefe Sounds pretty straight forward, what have you got so far? Al )
  5. Hi there, This may be due to the DNS UpdateProxy group configuration and credentials. Add your DHCP servers to the DNS UpdateProxy group and set the credentials in the advanced tab of the DHCP server configuration. Good luck.. Bainer
  6. Hi Primary Tech, PaperCut software has AirPrint support, its a bit of a bolt on as it requires a MAC workstation. PaperCut is sold through resellers, Danwood (www.danwood.co.uk) are a reseller that know what they are doing, try getting in touch with them. Cheers Bainer
  7. Hi Darylrese, You could create a couple of batch files using PrintUI as below. Use the GPOs you've created to have this script run at machine startup. This should do the trick. Enjoy rundll32 printui.dll PrintUIEntry /ga /n "\\printserver\Single_Sided_B&W" rundll32 printui.dll PrintUIEntry /ga /n "\\printserver\Double_Sided_B&W" rundll32 printui.dll PrintUIEntry /ga /n "\\printserver\Single_Sided_Colour" rundll32 printui.dll PrintUIEntry /ga /n "\\printserver\Double_Sided_Colour" net stop spooler net start spooler
  8. bainer

    Add Printer

    Something like this is a start. Enjoy Dim strIP strIP = InputBox ("Enter TCP/IP Printer Port IP Address") CreatePort(strIP) strComputer = "." Set objWMIService = GetObject("winmgmts:" _     & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set objPrinter = objWMIService.Get("Win32_Printer").SpawnInstance_ objPrinter.DriverName = "HP LaserJet 4250 PCL6" objPrinter.PortName   = "IP_" & strIP objPrinter.DeviceID   = "Printer Name" objPrinter.Location = "Location" objPrinter.Put_ Function CreatePort(pName) strComputer = "." Set objWMIService = GetObject("winmgmts:" _     & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set objNewPort = objWMIService.Get _     ("Win32_TCPIPPrinterPort").SpawnInstance_ objNewPort.Name = "IP_" & pName  objNewPort.Protocol = 1 objNewPort.HostAddress = pName  objNewPort.PortNumber = "9100" objNewPort.SNMPEnabled = False objNewPort.Put_ End Function
×
×
  • Create New...