0
0
PowerShellscripting~5 mins

First PowerShell command - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is the simplest PowerShell command to display text on the screen?
The simplest command is Write-Output 'Hello, World!'. It prints the text inside the quotes to the screen.
Click to reveal answer
beginner
What does the Write-Output command do in PowerShell?
It sends the specified text or object to the output stream, which usually means it shows on the screen.
Click to reveal answer
beginner
How do you run a PowerShell command?
Open PowerShell, type the command, and press Enter. The command runs and shows the result.
Click to reveal answer
beginner
Why is PowerShell useful for beginners?
It lets you automate tasks by typing simple commands. You can see results right away, which helps learning.
Click to reveal answer
beginner
What is the output of this command? <br>Write-Output 'Welcome to PowerShell'
It prints: <br>Welcome to PowerShell
Click to reveal answer
Which command prints text to the screen in PowerShell?
AWrite-Output
BPrint-Text
CShow-Message
DDisplay-Text
How do you run a command in PowerShell?
ARight-click and select Run
BType it and press Enter
CDouble-click the command
DSave and open the file
What will this command do? <br>Write-Output 'Hello'
ADeletes Hello
BSaves Hello to a file
CPrints Hello on the screen
DDoes nothing
Which of these is NOT a PowerShell command to show text?
APrint-Text
BEcho
CWrite-Output
DWrite-Host
Why is PowerShell good for beginners?
AIt is a game
BIt requires no typing
CIt only runs on phones
DIt lets you automate tasks with simple commands
Explain how to run your first PowerShell command and what it does.
Think about the steps from opening the program to seeing the result.
You got /4 concepts.
    Describe the purpose of the Write-Output command in PowerShell.
    What happens when you want to see a message in PowerShell?
    You got /3 concepts.