/
Windows Powershell CMD/CLI
Windows Powershell CMD/CLI
I'm falling in love with PowerShell. The more I use it, the more I see the power of this simple but very effective scripting language for controlling the OS.
Before you try to execute your scripts, open the PowerShell as administrator, then run the command
Set-ExecutionPolicy RemoteSigned
Powershell command to install Chrome
$LocalTempDir = $env:TEMP; $ChromeInstaller = "ChromeInstaller.exe"; (new-object System.Net.WebClient).DownloadFile('http://dl.google.com/chrome/install/375.126/chrome_installer.exe', "$LocalTempDir\$ChromeInstaller"); & "$LocalTempDir\$ChromeInstaller" /silent /install; $Process2Monitor = "ChromeInstaller"; Do { $ProcessesFound = Get-Process | ?{$Process2Monitor -contains $_.Name} | Select-Object -ExpandProperty Name; If ($ProcessesFound) { "Still running: $($ProcessesFound -join ', ')" | Write-Host; Start-Sleep -Seconds 2 } else { rm "$LocalTempDir\$ChromeInstaller" -ErrorAction SilentlyContinue -Verbose } } Until (!$ProcessesFound)
, multiple selections available,
Related content
Installing Chrome on RHL or Centos
Installing Chrome on RHL or Centos
More like this
3. Configuring your EC2 Instance
3. Configuring your EC2 Instance
More like this
Services and Cron
Services and Cron
More like this
PowerShell Package Management System
PowerShell Package Management System
More like this
4. Jenkins - setting up a job
4. Jenkins - setting up a job
More like this
Using docker from windows shell or powershell
Using docker from windows shell or powershell
More like this