From 330fb1366a2c3399d6560f14b68ca8b0846af979 Mon Sep 17 00:00:00 2001 From: Markus Fleschutz Date: Sat, 10 Apr 2021 10:57:52 +0200 Subject: [PATCH] Add install-google-chrome.ps1 --- Data/scripts.csv | 1 + README.md | 1 + Scripts/install-google-chrome.ps1 | 7 +++++++ 3 files changed, 9 insertions(+) create mode 100644 Scripts/install-google-chrome.ps1 diff --git a/Data/scripts.csv b/Data/scripts.csv index f1a26aea..b88be999 100644 --- a/Data/scripts.csv +++ b/Data/scripts.csv @@ -54,6 +54,7 @@ go-root.ps1, go to the root directory (C: on Windows) go-scripts.ps1, go to the PowerShell Scripts folder hibernate.ps1, enables hibernate mode for the local computer (requires admin rights) inspect-exe.ps1, prints basic information of the given executable file +install-google-chrome.ps1, installs the Google Chrome browser introduce-powershell.ps1, introduces PowerShell to new users list-aliases.ps1, lists all PowerShell aliases list-anagrams.ps1, lists all anagrams of the given word diff --git a/README.md b/README.md index 0475da13..6e5095a8 100644 --- a/README.md +++ b/README.md @@ -43,6 +43,7 @@ Mega Collection of PowerShell Scripts * [enable-ssh-client.ps1](Scripts/enable-ssh-client.ps1) - enables the SSH client (needs admin rights) * [enable-ssh-server.ps1](Scripts/enable-ssh-server.ps1) - enables the SSH server (needs admin rights) * [hibernate.ps1](Scripts/hibernate.ps1) - enables hibernate mode for the local computer (needs admin rights) +* [install-google-chrome.ps1](Scripts/install-google-chrome.ps1) - installs the Google Chrome browser * [list-drives.ps1](Scripts/list-drives.ps1) - lists all drives * [list-network-shares.ps1](Scripts/list-network-shares.ps1) - lists the network shares of the local computer * [list-current-timezone.ps1](Scripts/list-current-timezone.ps1) - lists the current time zone details diff --git a/Scripts/install-google-chrome.ps1 b/Scripts/install-google-chrome.ps1 new file mode 100644 index 00000000..06ed73de --- /dev/null +++ b/Scripts/install-google-chrome.ps1 @@ -0,0 +1,7 @@ +### Silently installs latest google chrome ### +$Path = $env:TEMP; +$Installer = "chrome_installer.exe" +Invoke-WebRequest "http://dl.google.com/chrome/install/latest/chrome_installer.exe" -OutFile $Path\$Installer +Start-Process -FilePath $Path\$Installer -Args "/silent /install" -Verb RunAs -Wait +Remove-Item $Path\$Installer +exit 0