Day 2 Flashcards
PowerShell
an object-oriented, interactive command environment with scripting language features
uses some *Nix commands and has a LINUX version.
Windows PowerShell Integrated Scripting Environment (ISE)
where the scripting language aspect of Windows PS generally takes place
Versions
use the Get-Host cmdlet or the $PSVersionTable variable to show the current PS version
aliases
use the cmdlet Get-Alias to show a list of aliase commands.
aliases are windows CLI and unix commands that work the same as a PS command
ex. dir is an alias for the Get-ChildItem cmdlet
help
get-command lists all available cmdlets.
use Get-help to show help information for those cmdlets
(help is an alias for Get-help)
you can use -examples to show examples of the cmdlet you are getting help for in use.
use wildcards with Get-Help (ex. Get-Help user
cmdlets
small commands used within PS; they are not stand alone executables
cmdlets breakdown
object
verb-noun attribute additional info
PS C:> get-ChildItem -Path C:\Windows
cmdlet parameter argument
more on Get
get is not the only verb available. use Get-Verb to display a list of verbs
cmdlet parameters (switches)
used to identify additional object attributes ex. -name -computername -path -examples
cmdlet arguments
arguments define additional information associated with a parameter name.
arguments are not required.
pipeline
piping refers to the process of passing the results of one cmdlet as input into a second cmdlet
modules
packages of PS commands, consisting of cmdlets, functions, variables, and aliases
logging
a way for the OS and its services and applications to record important actions, post status messages, and track security events
auditpol
the command line tool that enables auditing
auditing
auditing is the tracking of changes