Skip to content

theresa-de-ocampo/powershell-tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

PowerShell Notes

Learn PowerShell in a Month of Lunches (4th Edition)

Chapter 1 - Before You Begin

  • PowerShell - refers to the 7.x version
  • Shell - an application that can accept text-based commands, e.g., Bash or PowerShell.
  • Terminal - an application that can run a shell application within it. Terminals are shell-agnostic, so you can run any shell in any terminal you'd like.
  • Windows PowerShell - refers to PowerShell 5.1 that comes pre-installed on your Windows 10 device.
Command Details Page
$PSVersionTable 33

Chapter 2 - Meet PowerShell

Command Details Page
Dir / 49

Chapter 3 - Using the Help System

  • Enter - next line
  • Spacebar - next page
  • q - quit
Command Details Page
help Get-Process 54
Help *event* 56
Get-Command *help* 58
Get-Command *help* -Type cmdlet 58
Help Get-Item -Full

61
Get-Item [-Path] <System.String[]> -
Help Get-Item -Example 64
Help Get-Item -Online 65

Chapter 4 - Running Commands

  • A cmdlet is a native PowerShell command-line utility. These exists only inside PowerShell and are written in a .NET Core language.
  • A function can be similar to a cmdlet, but rather than being written in a .NET language, functions are written in PowerShell's own scripting language.
  • An application is any kind of external executable, including command-line utilities such as ping, and ipconfig.
  • Command is the generic term that we use to refer to any or all of the preceeding terms.
Command Details Page
Get-ExecutionPolicy RemoteSigned 70
Get-Verb 75
Get-Alias -Definition Get-Process 76
(Get-Command Get-Process | select -Expand parameters).ErrorAction.aliases 76
Move-Item -Path 'C:\path\PS Notes.txt' -Destination 'C:\new-path' - 79

Chapter 5 - Providers

A PowerShell provider or PSProvider is an adapter. It's designed to take some kind of data storage, such as Windows Registry, Active Directory, or even the local filesystem, and make it look like a disk drive.

TODO

  • Read 4.7 after studying more about Azure Functions

About

Learning PowerShell

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages