CIS245_Week2_Powershell_Quiz

.docx

School

ECPI University, Greensboro *

*We aren’t endorsed by this school

Course

245

Subject

Computer Science

Date

Jan 9, 2024

Type

docx

Pages

5

Uploaded by corada5995

Report
Question 1 Partially correct Mark 0.3 out of 10 Question 2 Correct Mark 1.0 out of 10 Question 3 Correct Mark 1.0 out of 10 Question 4 Incorrect Mark 0.0 out of 1.0 Question 5 Incorrect Mark 0.0 out of 10 Question 6 Incorrect Mark 0.0 out of 10 Write the PowerShell command used to list examples using the Get-EventLog cmdlet. Get-Eventlog \x | -Topics |x | -Examples |-/ Get-Command Where || Get-Help Your answer is partially correct. You have correctly selected 1. Open the detailed help for the Get-Content cmdlet. List the argument value type for the -Path p If the p has no select switch. Noun | | Switch HModuIes“ Verb | Your answer is correct. Open the detailed help for the Get-Content cmdlet. List the argument value type for the -Raw p . If the p [Modules ][ Noun | [ string [ verb | has no arg select switch. Use PowerShell help to find cmdlets related to the Write-Host command. Enter the first cmdlet listed in the RELATED LINKS section of the help file. Write-Output|‘ Write-Error ||Write-Debug|‘ Clear-Host Your answer is incorrect. Write the PowerShell command used to list examples using the Resolve-DnsName cmdlet. Get-Command | x | -Examples | x |Reso|ve-DnsName| x I Where I | 4 l Your answer is incorrect. Get-Help -Topics Use PowerShell help to find cmdlets related to the Start-Transaction command. Enter the first cmdlet listed in the RELATED LINKS section of the help file. x | Undo-Transaction ||Comp|ete—Transaction Get-Transaction about_Transaction Your answer is incorrect.
Question 7 Use the information on the Get-EventLog detailed help page to determine the argument type for the -Newest parameter. Correct g Mark 1.0 out of 1.0 | String DateTime || Switch || String Array Your answer is correct. Question 8 Open the detailed help for the Get-Content cmdlet. Use help to mach the parameter to its description Partially correct :";a;k 2.0outeef Specifies the number of lines from the end of a file or other item. Tai s v Ignores newline characters and returns the entire contents of a file in one string. -Include % | % Specifies, as a string array, the item or items that this cmdlet includes in the operation. -Raw s | % Specifies the path to an item. -Path : Specifies the delimiter that Get-Content uses to divide the file into objects while it reads. | -Delimiter = Question 1 Use PowerShell help to find cmdlets related to the Read-Host command. Enter the first cmdlet listed in the RELATED LINKS section of the help file. Incorrect Mark 0.0 out of 1.0 Clear-Host After-Host H Write-Host Your answer is incorrect. Question 2 Use the information on the Get-EventLog detailed help page to determine the argument type for the -LogName parameter. Correct Mark 1.0 out of 1.0 Switch Int32 Modules Your answer is correct. Question 3 What command would you use to answer the question “What is an alias?” Partially correct [ Gettep Jv [ v x [ - 1] Mark 0.5 out of 10 Your answer is partially correct. You have correctly selected 1.
Question 4 Open the detailed help for the Get-Content cmdlet. List the argument value type for the -Delimiter parameter. If the parameter has no argument enter switch. Incorrect Mark 0.0 out of 10 | String Noun || Modules Verb | Your answer is incorrect. Question 5 Write the PowerShell command used to list examples using the Set-Location cmdlet. Partially correct Get-Help ]V l -Examples lx l Set-Location lx Mark 0.2 out of 10 | Where | | -Topics || . Get-Command Your answer is partially correct. You have correctly selected 1. Question 6 Use PowerShell help to find cmdlets related to the Set-Location command. Enter the first cmdlet listed in the RELATED LINKS section of the help file. Incorrect . « Mark 0.0 out of 10 Get-Location Push-Location ||After—Location Your answer is incorrect. Question 7 What command would you use to answer the question “What is a PowerShell provider?” Correct | Get-Help | v | about_Providers | v Mark 0.7 out of 10 | Y4 providers* Get-Command Your answer is correct. Question 8 Open the detailed help for the Get-EventLog cmdlet. Use help to mach the parameter to its description Correct :";gk BOeHE Specifies, as a string array, user names that are associated with events. s v Specifies the event log. ogName s v Specifies the data and time that this cmdlet get events that occur before. s v Specifies a remote computer. : v Specifies the maximum number of events that this cmdlet gets. s v Specifies the data and time that this cmdlet get events that occur after. s v
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help