Create powershell script or batch file to install software one after one on  remote multiple computers  a nd show progress bar and creating log file

A A
A A used Ask the Experts™
on
I would like to create a powershell script or batch file script that will run multiple software  one after on multiple  remote computers  and show progress bar while installing and creating log file.
How can I do that bt scripting
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
mbkitmgrOwener

Commented:
Its pretty simple in a bacth file, the syntax is
\\Servername\Share\path\installer_filename or DriveLetter:\Path\installer_filename

After each one I do a DIR piped to fkag file of ones installed, that way if something misses I just deleted the flag and rerun the batch file;
Eg:
:APP1
REM check the flag exists, if yes skip
    IF EXIST \\server01\installers\My CompanyAppSetup_%Computername%.txt GOTO APP2
REM Doesnt exist so run installer
    \\server01\installers\My CompanyAppSetup.exe
REM Have just run installer create installed flag on share
    DIR c:\ >\\server01\installers\My CompanyAppSetup_%computerName%.txt

:APP2
REM check the flag exists, if yes skip to APP3
    IF EXIST \\server01\installers\My1stCompanyAppSetup_2%Computername%.txt GOTO APP3
REM Doesn't exist so run installer
    \\server01\installers\AppSetup.exe
REM Have just run installer create installed flag on share
    DIR c:\ >\\server01\installers\My CompanyAppSetup_2%computerName%.txt

:APP3

Open in new window


Some installer may have a logging switch eg Setup.exe /L /Pathfor log but you'll need to check with each application installer to see what they have inlcuded.
A A

Author

Commented:
could you please to explain  in details and  do it in form of ps file that takes variables  that I can download and customize as really I am unable to understand this method
A A

Author

Commented:
Need info and more comments from all experts please

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial