I am currently having issues getting Google Chrome to remotely install with the following script:
for /F “usebackq delims==” %%I in (“TargetComputers.txt”) do Call :begin %%I
goto :EOF
:begin
set comp=%1
:get info
robocopy \\<server>\Scripts\ExesToInstall \\%comp%\c$\1Temp /XF DNI_*.* /r:0 /w:0
psexec \\%comp% -i cmd.exe /c c:\1Temp\ChromeSetup.exe REM /SILENT
The file copying completes successfully and I am able to install it fine if I run it from the destination computer, but on the psexec call the command prompt shows up on the destination computer, followed by the following error in a Google Update Installer message box:
“Google Update installation failed with error 0x80070057.”
Both the computer I’m running the script on and the computers I’m targeting are Windows XP SP3.
Any help would be greatly appreciated.
0x80070057 = E_INVALIDARG
The installer is probably getting that error from Windows, so it just aborts and returns. I don’t know exactly what’s it doing that Windows doesn’t like. There’s a chance, a slim one, that Process Monitor running on the client will show you what’s going on.
If I had to guess, I’d say it’s trying to access the user’s personal directories. Since psexec runs programs outside of the user environment, the conversation would go something like this:
Google Update Installer: Where’s the user’s Application Settings?
Windows: What user?
Go to https://enterprise.google.com/chrome/chrome-browser/ and download proper msi.
Put installer on some visible for everyone network path. For example: //YOUR_MAMA/share/googlechromestandaloneenterprise64.msi
Install (if you still don’t have it) Psexec. Here you can read where you can find it.
Run cmd an type the following command:
psexec64 -s /user:domain\login -i \\REMOTE_COMPUTER “msiexec” /q /i \\YOUR_MAMA\share\googlechromestandaloneenterprise64.msi
It will prompt you about your password – obviously type one tied to option domain/login.
After few minutes cmd shall output error code 0 which means no error at all