Code Monkey home page Code Monkey logo

powershell-10's Introduction

Key Commands

  • user mode: window key > powershell
  • admin mode: window key > powershell ctrl+shft+enter
  • explorer to powershell: alt D > powershell
  • powershell to explorer: ii .
  • launch url in browser: start http://url
  • copy to clipboard: highlight text and hit enter or right click or pipe to clip
  • paste from clipboard: right mouse button
  • pass command to cmd.exe: cmd /c dir
  • F7 display window with command history
  • ESC - clear command line
  • ctrl+end - clear line after cursor
  • ctrl-left/right - jump by word
  • home/end - beginning/end of line
  • backtick spans multiple lines, enter on empty line executes command
  • set windows to open ps1, psm1, psd1 files with powershell ISE

ISE

  • powershell_ise.exe - integrated scripting environment
  • F5 - run entire script
  • F8 - run highlighted or current line
  • ctrl+D - goto console
  • ctrl+I - goto script

Types of commands

  • cmdlets - Implemented by a .NET class that derives from the Cmdlet base class in the PowerShell SDK. Cmdlets are compiled into a DLL and loaded into the PowerShell process. Verb-Noun form.
  • shell function commands - function Do-Something { }
  • script commands - code in a file with ps1 extension
  • native win32 windows commands

Aliases and shortcuts

  • unix commands ls, cat, mv, cp, man, pwd, ps, grep
  • ? is short for where
  • % is short for foreach

Visual Studio

  • studioshell - powershell inside visual studio window
  • traverse visual studio ide object tree like a drive in powershell
  • myproject.psm1 project solution module file. lives next to myproject.sln file
  • when visual studio opens a solution file, it automatically runs the psm1 file.
  • add entries to visual studio menus

Websites

Module Repositories

Modules

powershell-10's People

Contributors

ericnelson1 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.