ADV PROG DAY 6 Flashcards
Displays all commands that are installed on the computer, including cmdlets, aliases, functions, filters, scripts, and applications
Get-Command
Displays information about PowerShell concepts and commands, including cmdlets, functions,aliases, and scripts.
Get-Help
Displays the members, properties, and methods of objects.
Get-Member
Displays the aliasesavailablein the current session.
Get-Alias
Displays objects that represent the services on a computer, including running and stopped services.
Get-Service
Displays a list of all active processes running on the local computer.
Get-Process
Displaysthe items in one or more specified locations.
Get-Childitem
Displays the content of the item at the location specified by the path,such as the text in a file or the content of a function.
Get-Content
Sends pings to one or more remote computers and returns the echo response replies.
Test-Connection
Determines whether all elements of a path exist.
Test-Path
Reads a line ofinput from the console.
Read-Host
Sends a specified object to the host/screen.
Write-Host
Sends a specified object down the pipeline to the next command.
Write-Output
Selects objects that have particular property values from the collection of objects that are passed to it
Where-Object
Sorts objects in ascending or descending order based on object property values
Sort-Object
The search expression is written between a set of curly braces.
Where Clause
{ }
Automatically references each object passed to the Where-Object cmdlet via the pipeline. Being an object itself, individual properties can be referenced to build the filter by using the dot $_.
Default Object
$_
Refers to an argument or operator to perform a Boolean or regular expression match.
Comparison
Can refer to a numerical value for a Boolean expression or a regular expression string.
value
variables method to identify the data type for a variable.
GetType()
Substitutes variable and escaped characters with their actual values.
Double Quotes
Makes everything literal so the values of the variables and the escape characters are not substituted.
Single Quotes