PowerShell Basics Flashcards
What is the verb to create?
New-
What is the verb to retreive/show?
Get-
What is the verb to make a configuration change?
Set-
What is the verb to delete?
Remove-
What is the verb to rename?
Rename-
What is the shortcut to complete a partially typed command?
Tab
What is the shortcut to go back in a partially typed command?
Shift + Tab
What is the pipeline?
Passing data from one command through to another
Why is the pipeline useful?
It pipes data object, text that has to be parsed
What is the parameter to see the outcome of executing a command without doing it?
-WhatIf
What is the naming convention in PowerShell?
Verb-Noun
What is the cmdlet to retrieve a list of all verbs?
Get-Verb
What is the symbol used to get all values associated to a parameter?
*
How would you get all values beginning with a set of characters?
(characters) *
i. e: ms*
What separates a parameter and its value?
A space
i.e: -Name vm
What strings together multiple parameter values?
A comma
i.e: Computername CL1,CL2,CL3
What is a positional parameter?
Parameters that are associated without specifying based on order
How do you get all the values containing a set of characters?
- (characters)*
i. e: dns
What command wold you issue to search for the help files about commands?
Get-Help -Name about
When should you update help?
After installing new roles and features
How do you output a commands response to a file?
Out-File C:\Location\Filename.extension
How do you see a list of previously executed commands within the current session?
Get-History
How do you invoke a command that has previously been run?
Invoke-History -id n
*n is the number of command to be invoked
How do you create a log of all the command made?
Start-Transcript C:\Location\Filename.extension
Stop-Transcript