Introduction to PowerShell

Published 12-08-2020 07:05 AM 2,915 Views
Microsoft

PowerShell is a command-line shell and a scripting language, all in one. You can use PowerShell for script automation, run batches of commands, control resources in the Cloud and much more. It started out with automation on Windows but nowadays there's PowerShell core which works on Linux, macOS and Windows. 

 

PowerShell is one of those "great to have" tools if you are considering a career in Ops or DevOps. The LEARN platform, found at aka.ms/learn, have just released the first module dedicated to PowerShell language. The module is meant to be a beginner module and explains, things such as:

 

  • Understand what PowerShell is and what you can use it for.
  • Explore cmdlets.
  • Construct a sequence of cmdlets in a pipeline.
  • Apply sound filtering and formatting principles to your commands.

Screen Shot 2020-12-08 at 15.09.01.png

 

There's also a PowerShell extension for VS Code that can speed up the authoring process, that I think you should check out. Here the link to learn more and download the PowerShell extension for VS Code 

Screen Shot 2020-12-08 at 15.09.43.png

%3CLINGO-SUB%20id%3D%22lingo-sub-1967214%22%20slang%3D%22en-US%22%3EIntroduction%20to%20PowerShell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1967214%22%20slang%3D%22en-US%22%3E%3CP%3EPowerShell%20is%20a%26nbsp%3B%3CSPAN%3Ecommand-line%20shell%20and%20a%20scripting%20language%2C%20all%20in%20one.%20You%20can%20use%20PowerShell%20for%20script%20automation%2C%20run%20batches%20of%20commands%2C%20control%20resources%20in%20the%20Cloud%20and%20much%20more.%20It%20started%20out%20with%20automation%20on%20Windows%20but%20nowadays%20there's%20PowerShell%20core%20which%20works%20on%20Linux%2C%20macOS%20and%20Windows.%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EPowerShell%20is%20one%20of%20those%20%22great%20to%20have%22%20tools%20if%20you%20are%20considering%20a%20career%20in%20Ops%20or%20DevOps.%20The%20LEARN%20platform%2C%20found%20at%20aka.ms%2Flearn%2C%20have%20just%20released%20the%20%3CA%20title%3D%22LEARN%20module%20on%20PowerShell%22%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-gb%2Flearn%2Fmodules%2Fintroduction-to-powershell%2F%3FWT.mc_id%3Ddevops-324327-chnoring%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3Efirst%20module%20dedicated%20to%20PowerShell%3C%2FA%3E%20language.%20The%20module%20is%20meant%20to%20be%20a%20beginner%20module%20and%20explains%2C%20things%20such%20as%3A%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EUnderstand%20what%20PowerShell%20is%20and%20what%20you%20can%20use%20it%20for.%3C%2FLI%3E%0A%3CLI%3EExplore%20cmdlets.%3C%2FLI%3E%0A%3CLI%3EConstruct%20a%20sequence%20of%20cmdlets%20in%20a%20pipeline.%3C%2FLI%3E%0A%3CLI%3EApply%20sound%20filtering%20and%20formatting%20principles%20to%20your%20commands.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Screen%20Shot%202020-12-08%20at%2015.09.01.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F238662i38F96B64FF1CEA6C%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Screen%20Shot%202020-12-08%20at%2015.09.01.png%22%20alt%3D%22Screen%20Shot%202020-12-08%20at%2015.09.01.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThere's%20also%20a%20PowerShell%20extension%20for%20VS%20Code%20that%20can%20speed%20up%20the%20authoring%20process%2C%20that%20I%20think%20you%20should%20check%20out.%20Here%20the%20link%20to%20learn%20more%20and%20%3CA%20title%3D%22download%20the%20PowerShell%20extension%20for%20VS%20Code%22%20href%3D%22https%3A%2F%2Fcode.visualstudio.com%2Fdocs%2Flanguages%2Fpowershell%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3Edownload%20the%20PowerShell%20extension%20for%20VS%20Code%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Screen%20Shot%202020-12-08%20at%2015.09.43.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F238663iF38D4D12A4B012C3%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Screen%20Shot%202020-12-08%20at%2015.09.43.png%22%20alt%3D%22Screen%20Shot%202020-12-08%20at%2015.09.43.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-1967214%22%20slang%3D%22en-US%22%3E%3CP%3EPowerShell%20is%20a%26nbsp%3B%3CSPAN%3Ecommand-line%20shell%20and%20a%20scripting%20language%2C%20all%20in%20one.%20You%20can%20use%20PowerShell%20for%20script%20automation%2C%20run%20batches%20of%20commands%2C%20control%20resources%20in%20the%20Cloud%20and%20much%20more.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Screen%20Shot%202020-12-08%20at%2014.56.22.png%22%20style%3D%22width%3A%20416px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F238659i2397B2BFDD8314E4%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Screen%20Shot%202020-12-08%20at%2014.56.22.png%22%20alt%3D%22Screen%20Shot%202020-12-08%20at%2014.56.22.png%22%20%2F%3E%3C%2FSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1967214%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDevOps%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPowerShell%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Version history
Last update:
‎Dec 08 2020 07:10 AM
Updated by: