/build/static/layout/Breadcrumb_cap_w.png

Deploy Printer Driver to Select Computers

Hello!

I'm trying to deploy a printer driver using a script (batch file). The script works when run locally on the computer but trying to get it to deploy through the KACE has not yielded results. This is on k1000 v7.2.101 . Code below

[code]
if not exist "\\files\deptpublic\itshare\software\epson\fx890II\Driver\WINX64\EBSD120B.INF" goto NoShareExist
if exist "C:\Windows\System32\DriverStore\FileRepository\ebsd120b*" goto Success

SET KProgramFiles=%ProgramFiles(x86)%
IF NOT EXIST "%KProgramFiles%" goto Installx86


:Installx64
call pnputil -i -a \\files\deptpublic\itshare\software\epson\fx890II\Driver\WINX64\EBSD120B.INF
@echo %COMPUTERNAME% %USERNAME% %DATE% %TIME%>>"\\files\deptpublic\itshare\software\epson\fx890II\Test.txt"
if exist "C:\Windows\System32\DriverStore\FileRepository\ebsd120b*" goto Success

:Installx86
call pnputil -i -a \\files\deptpublic\itshare\software\epson\fx890II\Driver\WINX86\EBSD120B.INF
@echo %COMPUTERNAME% %USERNAME% %DATE% %TIME%>>"\\files\deptpublic\itshare\software\epson\fx890II\Test.txt"
if exist "C:\Windows\System32\DriverStore\FileRepository\ebsd120b*" goto Success

:NoShareExist
@echo The shared folder no longer exists
@echo Driver --not-- installed
exit /B

:Success
@echo Driver installed correctly
[/code]

I have tried running the script through KACE as local system and as logged on user, since I don't think the local system has access to our share drives. 

0 Comments   [ + ] Show comments
This question is locked

Answers (1)

Posted by: JasonEgg 6 years ago
Red Belt
0
thread locked due to duplicate question: http://www.itninja.com/question/deploy-printer-driver-through-kace
 
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