Add install-google-chrome.ps1

This commit is contained in:
Markus Fleschutz 2021-04-10 10:57:52 +02:00
parent 2536c282bb
commit 330fb1366a
3 changed files with 9 additions and 0 deletions

View File

@ -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

1 Script Description
54 go-scripts.ps1 go to the PowerShell Scripts folder
55 hibernate.ps1 enables hibernate mode for the local computer (requires admin rights)
56 inspect-exe.ps1 prints basic information of the given executable file
57 install-google-chrome.ps1 installs the Google Chrome browser
58 introduce-powershell.ps1 introduces PowerShell to new users
59 list-aliases.ps1 lists all PowerShell aliases
60 list-anagrams.ps1 lists all anagrams of the given word

View File

@ -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

View File

@ -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