Discussion:
Prndrvr.vbs
(too old to reply)
MadKovalchuk17
2008-03-29 16:01:01 UTC
Permalink
I am trying to remotely install a print driver via prndrvr.vbs and I keep
getting an error. I have copied the drivers to the remote machine. Below is
my code:

cscript c:\windows\system32\prndrvr.vbs -a -m "Lexmark E250d XL" -v "3" -e
"Windows NT x86" -h "C:\Printers\Lexmark\250dn" -i
"C:\Printers\Lexmark\250dn\LMABJC40.inf" -s "10.100.3.56" -u "administrator"
-w "password"

If I run the code like this for local machine (of course I dont have the
last three options in the script for a local machine), the code works and
installs the printer. If I run it for a remote machine, I receive the
following message:

Unable to add printer driver Lexmark E250d XL Win32 error code -2146762496

If I put a \ on the end of the directory (-i) I receive Win32 error code 123.

Any ideas on what is going on?

Thanks!
Alan Morris [MSFT]
2008-03-31 16:48:54 UTC
Permalink
E:\>winerror 123
123 ERROR_INVALID_NAME <--> 0xc0000033 STATUS_OBJECT_NAME_INVALID


for -u option use machinename\administrator
--
Alan Morris
Windows Printing Team
Search the Microsoft Knowledge Base here:
http://support.microsoft.com/search/?adv=1

This posting is provided "AS IS" with no warranties, and confers no rights.
Post by MadKovalchuk17
I am trying to remotely install a print driver via prndrvr.vbs and I keep
getting an error. I have copied the drivers to the remote machine. Below is
cscript c:\windows\system32\prndrvr.vbs -a -m "Lexmark E250d XL" -v "3" -e
"Windows NT x86" -h "C:\Printers\Lexmark\250dn" -i
"C:\Printers\Lexmark\250dn\LMABJC40.inf" -s "10.100.3.56" -u
"administrator"
-w "password"
If I run the code like this for local machine (of course I dont have the
last three options in the script for a local machine), the code works and
installs the printer. If I run it for a remote machine, I receive the
Unable to add printer driver Lexmark E250d XL Win32 error code -2146762496
If I put a \ on the end of the directory (-i) I receive Win32 error code 123.
Any ideas on what is going on?
Thanks!
e***@gmail.com
2008-04-22 18:36:16 UTC
Permalink
I am still getting the error message even using the solution you gave.
I appreciate your feedback/suggestions/help!

Thanks!

On Mar 31, 12:48 pm, "Alan Morris [MSFT]"
Post by Alan Morris [MSFT]
E:\>winerror 123
123 ERROR_INVALID_NAME <--> 0xc0000033 STATUS_OBJECT_NAME_INVALID
for -u option use machinename\administrator
--
Alan Morris
Windows Printing Team
Search the Microsoft Knowledge Base here:http://support.microsoft.com/search/?adv=1
This posting is provided "AS IS" with no warranties, and confers no rights.
Post by MadKovalchuk17
I am trying to remotely install a print driver via prndrvr.vbs and I keep
getting an error. I have copied the drivers to the remote machine. Below is
cscript c:\windows\system32\prndrvr.vbs -a -m "Lexmark E250d XL" -v "3" -e
"Windows NT x86" -h "C:\Printers\Lexmark\250dn" -i
"C:\Printers\Lexmark\250dn\LMABJC40.inf" -s "10.100.3.56" -u
"administrator"
-w "password"
If I run the code like this for local machine (of course I dont have the
last three options in the script for a local machine), the code works and
installs the printer. If I run it for a remote machine, I receive the
Unable to add printer driver Lexmark E250d XL Win32 error code -2146762496
If I put a \ on the end of the directory (-i) I receive Win32 error code 123.
Any ideas on what is going on?
Thanks!
Loading...