|
| |||||||||
| Tags: add, generic, local, swbemobjectex |
![]() |
| | Thread Tools | Search this Thread |
|
#1
| |||
| |||
| 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_ |
|
#2
| |||
| |||
| 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 |
|
#3
| |||
| |||
| 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_" |
![]() |
|
| Thread Tools | Search this Thread |
| |
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 |