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