Differences between revisions 7 and 8
Revision 7 as of 2017-03-23 21:57:25
Size: 809
Editor: SamatJain
Comment:
Revision 8 as of 2017-03-23 21:57:43
Size: 798
Editor: SamatJain
Comment:
Deletions are marked like this. Additions are marked like this.
Line 24: Line 24:
 * [[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?
Line 26: Line 26:
 * https://github.com/Disassembler0/Win10-Initial-Setup-Script: Powershell script to remove stupid defaults and user tracking from Windows 10  * https://github.com/Disassembler0/Win10-Initial-Setup-Script: Script to remove stupid defaults and user tracking from Windows 10

   1 # Print current environment (i.e. export)
   2 Get-ChildItem Env:
   3 
   4 # Equivalent of UNIX `which`
   5 (Get-Command which).Path

# Prevent a PowerShell script from quitting so you can read error messages powershell.exe -File Blah.ps1 -NoExit

Choco

   1 # These must be done from an admin shell!
   2 # Upgrade all currently installed packages
   3 choco upgrade all -y


CategoryCheatSheet

SamatsWiki: CheatSheet/PowerShell (last edited 2019-12-18 21:01:59 by SamatJain)