Prncnfg.vbs Unable to get configuration for printer 0x80041002 Not Found

0

Print Logs

batch file

Hi, I am currently getting the following error:

 Unable to get configuration for printer %remoteComputerIP%,3,Windows NT x86 Error 0x80041002 Not found 
 Operation GetObject
 Provider CIMWin32
 Description 
 Win32 error code

The code seems to execute. All of the code I am running remotely, and I have the proper permissions to create.

I create a port, assign a driver, set the default printer, but when it comes to configure the printer, so I can display it, it fails because it cannot find the printer object. Now, I can only see two ways this playing out:

  1. The code is false positive and I am successfully creating the printer driver and port(but when i look at the other computer I do see a create port without a sharename)

  2. The printer location is set incorrectly and cannot find the printer because it is looking in the wrong area.

My objective is to create a printer for a remote computer. After all the code runs, a do see a port, and a driver, however, when you go into devices and printers, only the default ones are seen. I have restarted the spool and restarted the computer.

printing
batch-file
cmd.exe
asked on Super User Oct 12, 2016 by Matt Pielichowski

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0