Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
13 Cards in this Set
- Front
- Back
How can you split a string? |
Use VariableName.split(',') <- specify the separator |
|
How can you create a full path from two separate paths? |
Join-Path |
|
What are two methods to run a specific set of code given specific conditions? |
If statement |
|
What is the syntax for the if statement? |
$a = "white" |
|
What is the syntax for the switch statement? |
$a = "red" |
|
To sign scripts, you will need a specific kind of certificate |
A Class III Authenticode Code-Signing Certificate |
|
A HTML formatted table uses the following tags. What do they mean? |
Table Row, Table Header, Table Data, e.g. |
|
How can you List Available Perfmon Counter Paths? |
(get-counter -listset *).paths | more |
|
How can you Get Multiple Perfmon Counters? |
get-counter -counter (get-content C:\Temp_Scripts\mycounters.txt) -MaxSamples 10 -sampleinterval 1 | Export-counter -Path C:\Temp_Scripts\$env:computername__PerfmonData1.blg |
|
How do you list the value data from a perfmon counter? |
$MemAvailable = Get-counter -Counter "\Memory\Available MBytes" |
|
What is the alias for the Where-Object? |
? -> Where-Object |
|
What is the default execution policy for Windows server 2012 R2? |
Remote Signed |
|
How can you specify the scope of a variable? |
$global:a =1 # visible everywhere |