Differences between revisions 5 and 6
Revision 5 as of 2017-03-20 23:39:06
Size: 536
Editor: SamatJain
Comment:
Revision 6 as of 2017-03-20 23:52:30
Size: 692
Editor: SamatJain
Comment:
Deletions are marked like this. Additions are marked like this.
Line 10: Line 10:
== Choco ==

{{{#!highlight powershell
# These must be done from an admin shell!
# Upgrade all currently installed packages
choco upgrade all -y
}}}

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

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)