Go Back   TechArena Community > Technical Support > Computer Help > Windows Server > Windows Server Help
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read SiteMap

Tags: , , ,

Sponsored Links



Add local IP Printer error... SWbemObjectEx: Generic failure

Windows Server Help


Reply
 
Thread Tools Search this Thread
  #1  
Old 05-05-2006
pdub
 
Posts: n/a
Add local IP Printer error... SWbemObjectEx: Generic failure

I am using the script below to add a local IP printer. The IP port 10.57.3.3
is already created. When I run it I get the error "SWbemObjectEx: Generic
failure" on the line with "objPrinter.Put_".

With the printers window open it looks like the printer is created for a
second, then it disappears and the error comes up.

I can create the printer manually. Any information I have found so far state
it has to do with permissioning, I am logged in as the local administrator.

Any Thoughts?

strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")

Set objPrinter = objWMIService.Get("Win32_Printer").SpawnInstance_

objPrinter.DriverName = "Xerox Document Centre 430"
objPrinter.PortName = "IP_10.57.3.3"
objPrinter.DeviceID = "copyroom"
objPrinter.Location = "copyroom"
objPrinter.Put_
Reply With Quote
  #2  
Old 08-06-2006
Orakel
 
Posts: n/a
RE: Add local IP Printer error... SWbemObjectEx: Generic failure

I was having the same problem and it appears that the computer doesn't like
"objPrinter.Put_" at the end of the script. I added a comment to the end
and the script ran fine.

objPrinter.Network = True
objPrinter.Shared = False
objPrinter.Put_
'jeez

Reply With Quote
  #3  
Old 08-06-2006
Orakel
 
Posts: n/a
RE: Add local IP Printer error... SWbemObjectEx: Generic failure

Just remembered something else that might help you. Make sure you have the
drivers on the machine your working on. The drivers not being installed
seems to cause a "Generic Failure" with the "objPrinter.Put_"

Reply With Quote
Reply

  TechArena Community > Technical Support > Computer Help > Windows Server > Windows Server Help


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Add local IP Printer error... SWbemObjectEx: Generic failure"
Thread Thread Starter Forum Replies Last Post
HP Photosmart 8250 printer error:”ink systems failure, error # oxc18A0408” Barraq Hardware Peripherals 5 05-05-2011 10:44 PM
Hp Printer Error 0xc18a0301 ink system failure Michael25 Hardware Peripherals 5 20-03-2010 02:29 AM
error 0x000003eb when trying to install a local printer pdmellon@gmail.com Vista Help 3 07-05-2008 09:24 AM
Script to change the local printer port - error 80041001 Pedro Lima Windows XP Support 4 22-02-2008 01:08 PM
Error Installing printer (80041001-SWbemObjectEx) with Windows 2k3 Joan Windows Server Help 1 14-09-2005 06:21 AM


All times are GMT +5.5. The time now is 04:29 PM.