0/1 Lessons

Course Introduction

• 5min

0 / 2 lessons complete

Getting Started with Windows PowerShell

• 56min

0 / 8 lessons complete

Getting Help and Finding Commands

• 39min

0 / 6 lessons complete

PowerShell Command Syntax

• 33min

0 / 5 lessons complete

PowerShell Objects and Properties

• 35min

0 / 6 lessons complete

The PowerShell Pipeline

• 24min

0 / 2 lessons complete

PowerShell Providers

• 30min

0 / 5 lessons complete

PowerShell Arrays and Variables

• 28min

0 / 4 lessons complete

PowerShell Loops

• 19min

0 / 3 lessons complete

PowerShell Conditional Statements

• 11min

0 / 1 lessons complete

On Premises Lab Setup

• 36min

0 / 8 lessons complete

Basic Domain Administration with Windows PowerShell

• 2hr 27min

0 / 10 lessons complete

Send Emails with PowerShell

• 22min

0 / 2 lessons complete

PowerShell Desired State Configuration (DSC) Basics

• 1hr 48min

0 / 6 lessons complete

PowerShell Modules

• 58min

0 / 7 lessons complete

Course Conclusion

• 1min

0 / 1 lessons complete

Command Syntax Lab Questions

Saving Progress...

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

  1. Every cmdlet is based upon the same structure. A name for this structure is?  ______ _______
  2. A dash tells PowerShell that a ____________ is being used
  3. Two angle brackets tells me that this a ___________
  4. The word string is located between two angle brackets, a string is called a ________ ________.
  5. When you see two square brackets surrounded by two angle brackets this tells you that this is a ________ __________ __________ __ ______
  1. 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 . 

  1. 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.

0 0 votes
Lesson Rating
Notify of
Inline Feedbacks
View all comments