Skip to content

Instantly share code, notes, and snippets.

@atb00ker
Last active October 15, 2020 15:10
Show Gist options
  • Save atb00ker/81de656c2ca5cc9f2b8a885fa0a435b8 to your computer and use it in GitHub Desktop.
Save atb00ker/81de656c2ca5cc9f2b8a885fa0a435b8 to your computer and use it in GitHub Desktop.
Commands for windows systems' powershell.
basic: basic commands for windows
# 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;
# Disk used (du -h)
Get-PSDrive
# Hosts File
C:\Windows\System32\drivers\etc\hosts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment