MadKovalchuk17
2008-03-29 16:01:01 UTC
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!
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!