/bundles/itninjaweb/img/Breadcrumb_cap_w.png
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   [ - ] Hide Comments

Comments

This question is locked

This question is locked

Answers

0
Answered 02/07/2018 by: JasonEgg
Red Belt

Please log in to comment