This script request came up when a client asked to have chrome installed on all there office computers. I downloaded chrome stand alone exe, using a BAT file and PSEXEC I created a simple script that prompts for IP or HOSTNAME of the computer and installs CHROME on it. Please find the code below, I also included a link to my ONEDRIVE. |
***Please note I did not pay the 189.00 dollars to certify the EXE so UAC and or your AV might complain. And as a good rule always test unknown apps in a test environment***
RAW CODE MINUS PSEXEC + CHROMESTANDALONE
(REQUIRES CHROME STANDALONE AND PSEXEC - Rename Chrome installer to Setup.exe)
@echo off
color F0
mode con lines=6 cols=80
@echo Remote Chrome Installer
@echo Courtesy of Mark Collins www.markcollins.ca
SET /P pcip=Please enter the IP Address of the computer:
%temp%\psexec.exe \\%pcip% taskkill /im setup.exe /f
ping 127.0.0.1 -n 1
%temp%\psexec.exe \\%pcip% taskkill /im googleupdater.exe /f
ping 127.0.0.1 -n 1
start %temp%\psexec.exe \\%pcip% -c -f Setup.exe
ping 127.0.0.1 -n 18
taskkill /im psexec.exe
RAW CODE MINUS PSEXEC + CHROMESTANDALONE
(REQUIRES CHROME STANDALONE AND PSEXEC - Rename Chrome installer to Setup.exe)
@echo off
color F0
mode con lines=6 cols=80
@echo Remote Chrome Installer
@echo Courtesy of Mark Collins www.markcollins.ca
SET /P pcip=Please enter the IP Address of the computer:
%temp%\psexec.exe \\%pcip% taskkill /im setup.exe /f
ping 127.0.0.1 -n 1
%temp%\psexec.exe \\%pcip% taskkill /im googleupdater.exe /f
ping 127.0.0.1 -n 1
start %temp%\psexec.exe \\%pcip% -c -f Setup.exe
ping 127.0.0.1 -n 18
taskkill /im psexec.exe
|
local chrome installer
LINK TO LOCALCHROMEINSTALLER (INCASE YOU WANT TO DIRECTLY INSTALL)