wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

PowerShell

Total questions: 25

Worksheet time: 25mins

Name
Class
Date
1.

What is the PowerShell Command to list the Current Working Director to C:\Test?

a)

Set-Child C:\Test

b)

Get-Location C:\Test

c)

Set-Location C:\Test

d)

Get-Child C:\Test

2.

What is the alias used to list the Current Working Directory to C:\Test?

a)

MD C:\Test

b)

CD C:\Test

c)

DIR C:\Test

d)

RD C:\Test

3.

What is the command to display the alias for DIR?

a)

Get-Alias

b)

Get-Alias - All

c)

Get-Alias DIR

d)

Get-Alias -DIR

4.

Which of the following is the special character that will send information from one command-let to another?

a)

|

b)

>

c)

>>

d)

||

5.

Of the following choices which one is the alias for Get-Service?

a)

GPS

b)

GSV

c)

GCI

d)

GM

6.

Of the following choices which one is the alias for Get-Process

a)

GPS

b)

GSV

c)

GCI

d)

GM

7.

Of the following choices which one is the alias for Get-Member?

a)

GPS

b)

GSV

c)

GCI

d)

GM

8.

Of the following choices which one is the alias for Get-Child Item?

a)

GPS

b)

GSV

c)

GCI

d)

GM

9.

Which of the following is the command to determine what is the current Script Execution Policy?

a)

Get-ExecutionPolicy

b)

Set-ExecutionPolicy

c)

Get-AllExecutionPolicy

d)

Set-AllExecutionPolicy

10.

Which of the following is the command to display a directory listing in a table format?

a)

Get-ChildItem C:\ | FormatTable

b)

Get-ChildItem C:\ > Format-Table

c)

Get-ChildItem C:\ | Format-Table

d)

Get-ChildItem C:\ Format-Table

11.

Which of the following is the command to set any scripts to be executed in PowerShell?

a)

Set-ExecutionPolicy AllSigned

b)

Set-ExecutionPolicy Unrestricted

c)

Set-ExecutionPolicy RemoteSigned

d)

Set-ExecutionPolicy Restricted

12.

Which of the following is the command to list all PS Drives in PowerShell?

a)

Get-PSDrive

b)

Get|PSDrive

c)

Get.PSDrive

d)

Get PSDrive

13.

Which of the following is the command to list Content of C:\MyFile.txt?

a)

Get-Content | C:\MyFile.txt

b)

Add-Content C:\MyFile.txt

c)

Set-Content C:\MyFile.txt

d)

Get-Content C:\MyFile.txt

14.

Which of the following is the command to access the Registry Drive?

a)

Get-PSDrive | PSProvider registry

b)

Get-PSDrive –PSProivder registry

c)

Get-PSDrive registry

d)

Get-PSDrvie – registry

15.

Which of the following is the default protocol used for Remote Access to PowerShell?

a)

TCP/IP

b)

UDP

c)

RPC

d)

NONE

16.

What is the current Remote Access Protocol used in Windows 2012?

a)

WinRM

b)

RDP

c)

DCOM

d)

TCP/IP

17.

Which of the following is the command to Enter Remote PowerShell Command to reach the Server ?

a)

Enter-PSSession | Server

b)

Enter-Session – ComputerName Server

c)

Enter-PSSession –ComputerName Server

d)

Enter-PSSession | ComputerName Server

18.

Which of the following characters is used to create a variable in PowerShell?

a)

$

b)

?

c)

%

d)

#

19.

Which of the following is the command to display the Content of a Variable $GetInfo = Get-Process ?

a)

Write.Host $GetInfo

b)

Write-Host $GetInfo

c)

WriteHost $GetInfo

d)

Write Host | $GetInfo

20.

Which of the following is the comparison operator for Equal?

a)

-NEQ

b)

-LT

c)

-GT

d)

-EQ

21.

Which of the following is the comparison Operator for Not Equal?

a)

-NEQ

b)

-LT

c)

-GT

d)

-EQ

22.

Which of the following is the comparison Operator for Greater Then?

a)

-NEQ

b)

-LT

c)

-GT

d)

-EQ

23.

Which of the following is the coWhich of the following is the comparison Operator for Less Then?mparison Operator for Greater Then?

a)

-NEQ

b)

-LT

c)

-GT

d)

-EQ

24.

Which of the following is the command to Display Variable Information?

a)

Get-Variable

b)

New-Variable

c)

Set-Variable

d)

Remove-Variable

25.

Which of the following deletes a variable and its value?

a)

Clear-Variable

b)

Remove-Variable

c)

Set-Variable

d)

Get-Variable