WorksheetsPowerShell
Total questions: 25
Worksheet time: 25mins
What is the PowerShell Command to list the Current Working Director to C:\Test?
Set-Child C:\Test
Get-Location C:\Test
Set-Location C:\Test
Get-Child C:\Test
What is the alias used to list the Current Working Directory to C:\Test?
MD C:\Test
CD C:\Test
DIR C:\Test
RD C:\Test
What is the command to display the alias for DIR?
Get-Alias
Get-Alias - All
Get-Alias DIR
Get-Alias -DIR
Which of the following is the special character that will send information from one command-let to another?
|
>
>>
||
Of the following choices which one is the alias for Get-Service?
GPS
GSV
GCI
GM
Of the following choices which one is the alias for Get-Process
GPS
GSV
GCI
GM
Of the following choices which one is the alias for Get-Member?
GPS
GSV
GCI
GM
Of the following choices which one is the alias for Get-Child Item?
GPS
GSV
GCI
GM
Which of the following is the command to determine what is the current Script Execution Policy?
Get-ExecutionPolicy
Set-ExecutionPolicy
Get-AllExecutionPolicy
Set-AllExecutionPolicy
Which of the following is the command to display a directory listing in a table format?
Get-ChildItem C:\ | FormatTable
Get-ChildItem C:\ > Format-Table
Get-ChildItem C:\ | Format-Table
Get-ChildItem C:\ Format-Table
Which of the following is the command to set any scripts to be executed in PowerShell?
Set-ExecutionPolicy AllSigned
Set-ExecutionPolicy Unrestricted
Set-ExecutionPolicy RemoteSigned
Set-ExecutionPolicy Restricted
Which of the following is the command to list all PS Drives in PowerShell?
Get-PSDrive
Get|PSDrive
Get.PSDrive
Get PSDrive
Which of the following is the command to list Content of C:\MyFile.txt?
Get-Content | C:\MyFile.txt
Add-Content C:\MyFile.txt
Set-Content C:\MyFile.txt
Get-Content C:\MyFile.txt
Which of the following is the command to access the Registry Drive?
Get-PSDrive | PSProvider registry
Get-PSDrive –PSProivder registry
Get-PSDrive registry
Get-PSDrvie – registry
Which of the following is the default protocol used for Remote Access to PowerShell?
TCP/IP
UDP
RPC
NONE
What is the current Remote Access Protocol used in Windows 2012?
WinRM
RDP
DCOM
TCP/IP
Which of the following is the command to Enter Remote PowerShell Command to reach the Server ?
Enter-PSSession | Server
Enter-Session – ComputerName Server
Enter-PSSession –ComputerName Server
Enter-PSSession | ComputerName Server
Which of the following characters is used to create a variable in PowerShell?
$
?
%
#
Which of the following is the command to display the Content of a Variable $GetInfo = Get-Process ?
Write.Host $GetInfo
Write-Host $GetInfo
WriteHost $GetInfo
Write Host | $GetInfo
Which of the following is the comparison operator for Equal?
-NEQ
-LT
-GT
-EQ
Which of the following is the comparison Operator for Not Equal?
-NEQ
-LT
-GT
-EQ
Which of the following is the comparison Operator for Greater Then?
-NEQ
-LT
-GT
-EQ
Which of the following is the coWhich of the following is the comparison Operator for Less Then?mparison Operator for Greater Then?
-NEQ
-LT
-GT
-EQ
Which of the following is the command to Display Variable Information?
Get-Variable
New-Variable
Set-Variable
Remove-Variable
Which of the following deletes a variable and its value?
Clear-Variable
Remove-Variable
Set-Variable
Get-Variable
