Introduction
Welcome to this walkthrough on PowerShell fundamentals in this exercise, we will cover the basics of PowerShell, including navigation, file and folder management, gathering information, and scripting. By the end of this walkthrough, you will have a solid understanding of how to use PowerShell to perform common administrative tasks and will be able to apply this knowledge to real-world scenarios.
In this walkthrough, we will start by exploring the PowerShell interface and learning how to navigate and manage files and folders. We will then move on to gathering information about the system, including CPU, memory, and disk information. Finally, we will learn how to use PowerShell scripting to automate tasks and solve administrative problems.
Throughout this walkthrough, we will use a combination of cmdlets, scripts, and exercises to help you learn and practice your skills. By the end of this walkthrough, you will be able to use PowerShell to perform a variety of tasks, including:
- Navigating and managing files and folders
- Gathering information about the system
- Using PowerShell scripting to automate tasks
- Solving administrative problems using PowerShell
Let's get started.
Lab Questions and Answers: 1.1 Core Concepts
1. PowerShell is best described as:
A. A Windows-specific wrapper for BASH.
B. A blend of Windows CLI, VBScript, and Windows Management Instrumentation.
C. An object-oriented scripting language for automation, server management, documentation, and information administration.
D. A Python-based administration toolkit for Windows servers.
Answer: C
2. Cmdlet syntax is composed of two words: a ___ followed by a ____.
Answer: Verb, Noun
3. Piping is best described as:
A. Using one cmdlet’s output as another’s input.
B. Not needing to declare a variable’s data type.
C. An action you can perform on an object.
D. A type of loop.
Answer: A
Lab Questions and Answers: 1.2 Guided Exercise
1. How many PowerShell cmdlets are available on the lab server at the start of the exercise?
A. Less than 6000
B. Over 9000
C. Over 13000
D. Over 15000
E. Under 12000
Answer: C
2. What are the two aliases for the Get-Location cmdlet?
Answer: gl, pwd
3. What is the OSVersion of the lab server?
Answer: 10.0.17763
4. Which Users are enabled by the LearningPowerShell.ps1 script?
Answer: Administrator, cybrary, cybraryadmin