Help System LAB Questions

Sign up to access this lesson

Click here to sign up and get access to this lesson!

Saving Progress...

Now we're going to put to work the things we've learned about the health system. 

• Question 1

We're going to run get-service okay press return and let's go ahead and scroll up. Now we want to pick a service that is currently running okay. And after you find a service that is currently running you're going to want to get the dependent services of the service that you have chosen. 

• Question 2

Lists all the logs that are on the computer go ahead and type that and get-eventlog -list you've already seen this. Now get the 20 most recent entries from the system log. 

• Question 3

The get-command, command gets all the commands on a computer. In this question, we want to get all the commands of all types. 

• Question 4

From the root of your C drive, create a folder, called content. Go ahead and open notepad, create a text file. Add a few lines and save it to your content directory and name it, test.text use the get-content command to get the contents of your text file and display it to the console. 

• Question 5

clear-history from the console pane type the command. Get-history. Displayed are all the commands that you have typed into PowerShell. Go ahead and use the clear-history command and only delete the first scroll up there delete the first and the last command that you've typed in the PowerShell. Now delete all the remaining commands. 

• Question 6

Using the get-alias command, how can you figure out the alias for get-service? 

• Question 7

How would you start and stop the bit service and see the result. 

• Question 8

How would you display the installed version of PowerShell? 

• Question 9

How would you count the number of aliases in the current session. Here's a hint. You may have to count and measure. Use the get-command *measure* to find the correct command. 

Go ahead and check out the answer video at the end of the section to make sure all your answers are correct.

Sign up to access the rest of this lesson

You must either log in or sign up to access this lesson.

Saving Progress...

0 0 votes
Lesson Rating
Subscribe
Notify of
4 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
profile avatar
Matthew Stricker(@matthews4)
Member
Points: 770
4 months ago

Is there a lab environment where we can try and work through the answers to these questions?
I did also try just going to one of the labs to try it out, but the labs weren’t opening for me.

Last edited 4 months ago by Matthew Stricker
profile avatar
Matthew Stricker(@matthews4)
Member
Points: 770
Reply to  Matthew Stricker
4 months ago

I was able to get into the labs, just opened up one of the 60min ones. I think it wasn’t letting me open a lab because I had a lesson open. Once I closed the lesson it let me open a lab, then I came back to this lesson so that I could attempt to answer the questions.

profile avatar
Ricardo P(@ricardop)
Admin
Power Student
Points: 16154
Reply to  Matthew Stricker
4 months ago

Hi profile avatar Matthew Stricker
We are glad you were able to access the labs, you can try the Lab in this course to try and work through the answers to these questions.
https://www.serveracademy.com/courses/administration-and-automation-with-windows-powershell/lab-domain-administration-with-windows-powershell/
If you need further help don’t hesitate to post your questions.
Ricardo

profile avatar
Matthew Stricker(@matthews4)
Member
Points: 770
Reply to  Ricardo P
4 months ago

That’s what I was looking for. Thank you, sir

Administration and Automation with Windows PowerShell

0%

0/1 Lessons

Course Introduction

• 5min

0 / 2 lessons complete

Getting Started with Windows PowerShell

• 42min

0 / 7 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

Course Conclusion

• 1min

0 / 1 lessons complete