PowerShell Fundamentals with Labs (2 Days) Quiz Questions and Answers

What PowerShell cmdlet will list the roles and features installed on Windows?

Answer :
  • get-windowsfeature

What cmdlet will allow you to run a single PowerShell command on one or more computers?

Answer :
  • invoke-command

What cmdlet is used to write output to the console?

Answer :
  • write-host

What cmdlet will read input from the user?

Answer :
  • read-host

If PowerShell allows a signed script to run, then PowerShell __________.

Answer :
  • A) Trusts the digital signature
    B) Trusts the digital signer
    C) Executes only the signed script
    All of the above

What information in get-help about a cmdlet's parameter do you look at to determine if an object can be passed to that cmdlet's parameter?

Answer :
  • Accept pipeline input?

What PowerShell symbols represent the current object crossing the pipeline?

Answer :
  • $_

What do PowerShell cmdlets return?

Answer :
  • object

What cmdlet will display the list of currently loaded modules?

Answer :
  • get-module

What parameter is used with out-file to specify the name of the file to which content is written?

Answer :
  • filepath