Helpful scripts

From truxwiki.com
Revision as of 11:25, 22 March 2021 by Pmuessig (talk | contribs) (Created page with " =Download/Install Chrome= <source lang="powershell"> $Path = $env:TEMP; $Installer = "chrome_installer.exe"; Invoke-WebRequest "http://dl.google.com/chrome/install/375.126/ch...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Download/Install Chrome

$Path = $env:TEMP; $Installer = "chrome_installer.exe"; Invoke-WebRequest "http://dl.google.com/chrome/install/375.126/chrome_installer.exe" -OutFile $Path\$Installer; Start-Process -FilePath $Path\$Installer -Args "/silent /install" -Verb RunAs -Wait; Remove-Item $Path\$Installer


Tail/Follow a Log

Get-Content "LOGFILEPATH" -Tail 10 -wait