Windows PowerShell cheatsheet
$PSVersionTable.PSVersion
// In cmd prompt:
@powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%systemdrive%\chocolatey\bin cinst powershell
Clear-Content C:\file-name-here
// Will tail last 3 lines of file given:
Get-Content file-name-here -Tail 3
// The '/t' is for recursive
cacls some_folder_here /t /e /g everyone:f
// New way
// The ':r' is to remove previous permissions
icacls some_folder_here /grant:r Everyone:F /t