Hi to All,
I've create a batch file that would install the adobe reader on all 100 computer but it is not successfull, this batch file loopback to my computer
(cab-systems06). We need to deploy adobe reader on all 100 computer.
Here is the sample code for the batch file
"\\cabprdfp1\Hardware and Software Installers\Software Applications\Acrobat Reader\AdbeRdr910.exe"
"\\cab-systems14\program files"
"\\cab-systems15\program files"
"\\cab-systems16\program files"
The first line is the source of the file
The rest of the line is the computer name
Batch File for Deployment
Moderator: DosItHelp
Re: Batch File for Deployment
You will need a remote run utility like rcmd to execute stuff remotely. You can also use psExec which is part of psTools. Its free to download and use.
http://technet.microsoft.com/en-us/sysi ... s/bb896649
Once you have psExec, create a text file listing all the computers you want to install the adobe reader on. You can execute psExec @file
where file is the list file containing all your computers.
If you have rcmd running on all destination computers you can use a for loop to install the reader as well. Keep in mind you should have proper permissions to use both these tools on destination computer.
http://technet.microsoft.com/en-us/sysi ... s/bb896649
Once you have psExec, create a text file listing all the computers you want to install the adobe reader on. You can execute psExec @file
where file is the list file containing all your computers.
If you have rcmd running on all destination computers you can use a for loop to install the reader as well. Keep in mind you should have proper permissions to use both these tools on destination computer.
-
- Posts: 2
- Joined: 11 Jan 2011 11:22
Re: Batch File for Deployment
Hi Bobby,
I have already downloaded the PSTOOL and do the procedure that you have instructed on this forum but still it doesn't work on installing.
Is there an incomplete data that I have input on my script batch file.
Batch File Name: Adobe.Bat
"\\cabprdfp1\Hardware and Software Installers\Software Applications\Acrobat Reader\AdbeRdr910.exe"
"\\cab-systems14\C$\program files"
"\\cab-systems15\C$\program files"
"\\cab-systems16\C$\program files"
Thanks...
I have already downloaded the PSTOOL and do the procedure that you have instructed on this forum but still it doesn't work on installing.
Is there an incomplete data that I have input on my script batch file.
Batch File Name: Adobe.Bat
"\\cabprdfp1\Hardware and Software Installers\Software Applications\Acrobat Reader\AdbeRdr910.exe"
"\\cab-systems14\C$\program files"
"\\cab-systems15\C$\program files"
"\\cab-systems16\C$\program files"
Thanks...
Re: Batch File for Deployment
Use the following batch file keeping in mind that your reader application is able to install non-interactively using some kind of silent switch like /s. Create a text file with all the computers that you intend to install the reader on that looks something like
ComputerName1
ComputerName2
ComputerName3
....
....
ComputerName100
Once you have that file name it machines.txt and then run the following in a batch file
@echo off
@echo Installing Adobe reader on remote computers...
for /f %%i in (machines.txt) do copy /y AdbeRdr910.exe \\%%i\c$ & psexec \\%%i -d "c:\AdbeRdr910.exe" /s
You can test the above command on a single machine by creating machines.txt file with just one destination computer name.
for /f %i in (machines.txt) do copy /y AdbeRdr910.exe \\%i\c$ & psexec \\%i -d "c:\AdbeRdr910.exe" /s
Check the installation of reader before you mass deploy it.
ComputerName1
ComputerName2
ComputerName3
....
....
ComputerName100
Once you have that file name it machines.txt and then run the following in a batch file
@echo off
@echo Installing Adobe reader on remote computers...
for /f %%i in (machines.txt) do copy /y AdbeRdr910.exe \\%%i\c$ & psexec \\%%i -d "c:\AdbeRdr910.exe" /s
You can test the above command on a single machine by creating machines.txt file with just one destination computer name.
for /f %i in (machines.txt) do copy /y AdbeRdr910.exe \\%i\c$ & psexec \\%i -d "c:\AdbeRdr910.exe" /s
Check the installation of reader before you mass deploy it.