Size: 329
Comment:
|
Size: 1131
Comment: Add equivalence table
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
## page was renamed from CheatSheet/Powershell | |
Line 5: | Line 6: |
# Equivalent of UNIX `which` (Get-Command which).Path # Prevent a PowerShell script from quitting so you can read error messages powershell.exe -File Blah.ps1 -NoExit |
|
Line 6: | Line 13: |
== Equivalent Commands == || '''UNIX ''' || '''!PowerShell ''' || || `rm -rf ${target}` || `Remove-Item -Recurse -Force ${target}` || == Choco == {{{#!highlight powershell # These must be done from an admin shell! # Upgrade all currently installed packages choco upgrade all -y # Useful packages for development/not pulling hair out choco install -y cmake.portable python2 python3 7zip git visualstudiocode cmdermini }}} |
|
Line 9: | Line 33: |
* [[https://technet.microsoft.com/en-us/library/bb613488(v=vs.85).aspx|Windows PowerShell Profiles]]: Where is the equivalent of .profile or .bashrc on Windows for Powershell? | * [[https://technet.microsoft.com/en-us/library/bb613488(v=vs.85).aspx|Windows PowerShell Profiles]]: Where is the equivalent of .profile or .bashrc on Windows for PowerShell? * https://github.com/Disassembler0/Win10-Initial-Setup-Script: Script to remove stupid defaults and user tracking from Windows 10 |
Equivalent Commands
UNIX |
PowerShell |
rm -rf ${target} |
Remove-Item -Recurse -Force ${target} |
Choco
External links
Windows PowerShell Profiles: Where is the equivalent of .profile or .bashrc on Windows for PowerShell?
https://github.com/Disassembler0/Win10-Initial-Setup-Script: Script to remove stupid defaults and user tracking from Windows 10