Skip to content

Instantly share code, notes, and snippets.

@atb00ker
Last active October 15, 2020 15:10
Embed
What would you like to do?
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