Command Syntax Lab Questions
Full-Access Members Only
Sorry, this lesson is only available to Server Academy Full-Access members. Become a Full-Access member now and get instant access to this and many more premium courses. Click the button below and get instant access now.
Instructions
Q&A (0)
Notes (0)
Resources (0)
Saving Progress...
Resources
There are no resources for this lesson.
Notes can be saved and accessed anywhere in the course. They also double as bookmarks so you can quickly review important lesson material.
In this lecture I’m going to ask you some questions from the Command Syntax Section.
We’re going to take a look at the command syntax from get-service
Fill in the blank
Question #1 Question 1 is in 6 parts, we’ll start from the left and work to the right
- Every cmdlet is based upon the same structure. A name for this structure is? ______ _______
- A dash tells PowerShell that a ____________ is being used
- Two angle brackets tells me that this a ___________
- The word string is located between two angle brackets, a string is called a ________ ________.
- When you see two square brackets surrounded by two angle brackets this tells you that this is a ________ __________ __________ __ ______
- These three groups are called __________ __________
Question #2 This question is in three parts
- Now tell me what parameters are common in each set.
- 3.You probably noticed that commonparameters arecommon to all three sets.
What command would you use to checkout the help for commonparameters?
Question #3
From the ISE, type get-service, then press return. You see the command ran.
Type get-help get-service -full. Press return.
Now explain using the syntax why get-service ran without using any parameters.
Question #4
From the ISE, type get-eventlog then press return. Notice that get-eventlog is asking for the name of one of the logfiles.
Press ctrl-c
Now type get-help get-eventlog -full.
Using the syntax, explain why get-eventlog requires typing a value or a logname, while get-service ran without a value or even a parameter.
Question #5 (CS #2) Goal:
Using help get-eventlog -showwindow. Take a look at the parameter -instanceID .
- Explain why -instanceID should be second in the order of parameters?
Question #6 (CS #2) Goal:
Let’s scroll down to -Newest.
- Why can you place –newest anywhere in the order of parameters?
Server Academy Members Only
Sorry, this lesson is only available to Server Academy Full Access members. Become a Full-Access Member now and you’ll get instant access to all of our courses.