/build/static/layout/Breadcrumb_cap_w.png

Install a Dell printer from the K1000

So I am trying to install a printer on Computers at a school.
We do not have a print server.
So my attempt is to do it with the K1000.
fDdPna.png

Output Log

Running as: SYSTEM
Directory DOES exist: C:\ProgramData\Dell\KACE
Launched Process: cscript.exe
Launched Process: cscript.exe
Launched Process: cscript.exe

Activity Log

Checking if directory exists: C:\ProgramData\Dell\KACE
Launching program: 'C:\Windows\System32\cscript.exe' 'C:\Windows\SysWOW64\Printing_Admin_Scripts\en-US\prnport.vbs -a -r 10.18.253.111 -h 10.18.253.111' wait='false'
Launching program: 'C:\Windows\System32\cscript.exe' 'C:\Windows\SysWOW64\Printing_Admin_Scripts\en-US\prndrvr.vbs -a -m "DKACHL40.inf" -h C:\Printer Folder\Dell 2330dn\drivers\print\win_2kxp\ -i C:\Printer Folder\Dell 2330dn\drivers\print\win_2kxp\DKACHL40.inf' wait='false'
Launching program: 'C:\Windows\System32\cscript.exe' 'C:\Windows\SysWOW64\Printing_Admin_Scripts\en-US\prnmngr.vbs -a -p x 2330dn" -m "DKACHL40.inf" -r 10.18.253.111' wait='false'
So the log said it ran BUT it did not install the printer. Any one know what is going on?

Here is what the script looks like in k1000

GGdXZX.png
ifgrHV.png

Any help would be really appreciated. 

2 Comments   [ + ] Show comments
  • can you post your on success lines - SMal.tmcc 8 years ago
  • Ok changed (C:\Windows\System32\Printing_Admin_Scripts\en-US) but still same results printer does not install... - TimHR 8 years ago

Answers (2)

Posted by: SMal.tmcc 8 years ago
Red Belt
1
from the logs you are calling the wrongs scripts.  you need to be calling the scripts out of C:\Windows\System32\Printing_Admin_Scripts\en-US not syswow64.  those are 32bit and that is most likely your problem.

Comments:
  • you may want to set wait for completion on. since wait is false the scripts could be stepping on each other. on a machine can you run the same commands with a batch file successfully? - SMal.tmcc 8 years ago
    • Ok I did that and got a error:
      Output log:
      Running as: SYSTEM
      Directory DOES exist: C:\ProgramData\Dell\KACE
      Microsoft (R) Windows Script Host Version 5.8
      Copyright (C) Microsoft Corporation. All rights reserved.
      Created/updated port 10.18.253.111
      Launched Process: cscript.exe
      Microsoft (R) Windows Script Host Version 5.8
      Copyright (C) Microsoft Corporation. All rights reserved.
      Usage: prndrvr [-adlx?] [-m model][-v version][-e environment][-s server]
      [-u user name][-w password][-h path][-i inf file]
      Arguments:
      -a - add the specified driver
      -d - delete the specified driver
      -e - environment "Windows {NT x86 | X64 | IA64}"
      -h - driver file path
      -i - fully qualified inf file name
      -l - list all drivers
      -m - driver model name
      -s - server name
      -u - user name
      -v - version
      -w - password
      -x - delete all drivers that are not in use
      -? - display command usage
      Examples:
      prndrvr -a -m "driver" -v 3 -e "Windows NT x86"
      prndrvr -d -m "driver" -v 3 -e "Windows x64"
      prndrvr -a -m "driver" -v 3 -e "Windows IA64" -i c:\temp\drv\drv.inf -h c:\temp\drv
      prndrvr -l -s server
      prndrvr -x -s server
      Remarks:
      The inf file name must be fully qualified. If the inf name is not specified, the script uses
      one of the inbox printer inf files in the inf subdirectory of the Windows directory.
      If the driver path is not specified, the script searches for driver files in the driver.cab file.
      The -x option deletes all additional printer drivers (drivers installed for use on clients running
      alternate versions of Windows), even if the primary driver is in use. If the fax component is installed,
      this option deletes any additional fax drivers. The primary fax driver is also deleted if it is not
      in use (i.e. if there is no queue using it). If the primary fax driver is deleted, the only way to
      re-enable fax is to reinstall the fax component.
      Creating process returned non-zero: C:\Windows\System32\cscript.exe %WINDIR%\System32\Printing_Admin_Scripts\en-US\Prndrvr.vbs -a -m "dkachl40.inf" -h C:\Printer Folder\Dell 2330dn\drivers\print\win_2kxp\ -i C:\Printer Folder\Dell 2330dn\drivers\print\win_2kxp\dkachl40.inf: (0) The operation completed successfully.
      Error Code: 0
      Status Code: 1 - TimHR 8 years ago
      • Activity Log

        Checking if directory exists: C:\ProgramData\Dell\KACE
        Launching program: 'C:\Windows\System32\cscript.exe' '%WINDIR%\System32\Printing_Admin_Scripts\en-US\prnport.vbs -a -r 10.18.253.111 -h 10.18.253.111 -o raw -n 9100' wait='true'
        Launching program: 'C:\Windows\System32\cscript.exe' '%WINDIR%\System32\Printing_Admin_Scripts\en-US\Prndrvr.vbs -a -m "dkachl40.inf" -h C:\Printer Folder\Dell 2330dn\drivers\print\win_2kxp\ -i C:\Printer Folder\Dell 2330dn\drivers\print\win_2kxp\dkachl40.inf' wait='true' - TimHR 8 years ago
    • The first line works
      The second line gives me the error I also tried it in a batch file with the same results.
      But I can not figure out what is wrong with the second line. - TimHR 8 years ago
      • you have format errors, there are no double quotes, you have a \ at the end of the -h switch, you have a : at the end of the \i switch. use

        C:\Windows\System32\cscript.exe %WINDIR%\System32\Printing_Admin_Scripts\en-US\Prndrvr.vbs -a -m "dkachl40.inf" -h "C:\Printer Folder\Dell 2330dn\drivers\print\win_2kxp" -i "C:\Printer Folder\Dell 2330dn\drivers\print\win_2kxp\dkachl40.inf"

        also you may want to include the -e switch - SMal.tmcc 8 years ago
    • Ok that fixed the second script running but still does not install the driver:
      Here is the log:
      Output Log

      Running as: SYSTEM
      Directory DOES exist: C:\ProgramData\Dell\KACE
      Microsoft (R) Windows Script Host Version 5.8
      Copyright (C) Microsoft Corporation. All rights reserved.
      Created/updated port 10.18.253.111
      Launched Process: cscript.exe
      Microsoft (R) Windows Script Host Version 5.8
      Copyright (C) Microsoft Corporation. All rights reserved.
      Unable to add printer driver dkachl40.inf Win32 error code 87
      Launched Process: cscript.exe
      Microsoft (R) Windows Script Host Version 5.8
      Copyright (C) Microsoft Corporation. All rights reserved.
      Unable to add printer Dell 2330dn Error 0x80041001 Generic failure
      Operation PutInstance
      Provider Win32 Provider
      Description The printer driver is unknown.
      Win32 error code 1797
      Launched Process: cscript.exe
      Activity Log

      Checking if directory exists: C:\ProgramData\Dell\KACE
      Launching program: 'C:\Windows\System32\cscript.exe' '%WINDIR%\System32\Printing_Admin_Scripts\en-US\prnport.vbs -a -r 10.18.253.111 -h 10.18.253.111 -o raw -n 9100' wait='true'
      Launching program: 'C:\Windows\System32\cscript.exe' '%WINDIR%\System32\Printing_Admin_Scripts\en-US\Prndrvr.vbs -a -m "dkachl40.inf" -h "C:\Printer Folder\Dell 2330dn\drivers\print\win_2kxp\" -i "C:\Printer Folder\Dell 2330dn\drivers\print\win_2kxp\dkachl40.inf"' wait='true'
      Launching program: 'C:\Windows\System32\cscript.exe' '%WINDIR%\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs -a -p x 2330dn" -m "dkachl40.inf" -r "10.18.253.111"' wait='true' - TimHR 8 years ago
      • error 87 is ERROR_INVALID_PARAMETER

        Looking at the 3rd line you have formatting error there also. you only have a close double quote

        -p x 2330dn"

        fix that format - SMal.tmcc 8 years ago
    • The line is...%WINDIR%\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs -a -p "helpme" -m "dkachl40.inf" -r "10.18.253.111"

      but when it runs I get this.......

      Launching program: 'C:\Windows\System32\cscript.exe' '%WINDIR%\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs -a -p x -m "dkachl40.inf" -r "10.18.253.111"' wait='true'

      I the x where "helpme" is, before I would get the x where "Dell 2330dn" was but just the word "Dell would be gone. - TimHR 8 years ago
Posted by: SMal.tmcc 8 years ago
Red Belt
1
also noticed in this
Launching program: 'C:\Windows\System32\cscript.exe' 'C:\Windows\SysWOW64\Printing_Admin_Scripts\en-US\prndrvr.vbs -a -m "DKACHL40.inf" -h C:\Printer Folder\Dell 2330dn\drivers\print\win_2kxp\ -i C:\Printer Folder\Dell 2330dn\drivers\print\win_2kxp\DKACHL40.inf' wait='false'

after the -h and -i you need double quotes due to the space in the name

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ