Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124
PowerShell can be used to automate tasks such as user management, CI/CD, managing cloud resources and much more. You’ll learn to run commands, how to learn more about PowerShell and additionally to create and run script files.
Prerequisites:
Learn about the basics of PowerShell. This cross-platform command-line shell and scripting language is built for task automation and configuration management. You’ll learn basics like what PowerShell is, what it’s used for, and how to use it.
Learning objectives:
After completing this module, you’ll be able to:
Prerequisites:
This module is part of these learning paths:
Q1. What’s a correct way to locate a command in PowerShell?
Get-Command 'name of command'
Find 'name of command'
Locate 'name of command'
Q2. How would you search for commands that deal with files?
Get-Command -Verb File*
Get-Command -Noun File
Get-Command -Noun File*
PowerShell comes with a built-in help system. Use help to read more about a command, what the command does, and how to call it. Also, if you inspect what a command returns, you can use that information to customize the output, determine what commands are logically grouped, and determine how to use the commands together.
Learning objectives:
When you finish this module, you’ll be able to:
Prerequisites:
This module is part of these learning paths:
Q1. Using the help system, what command or function helps you paginate the response?
'command' -help
Get-Help 'command'
help 'command'
Q2. Which statement will most efficiently find the returned type from a command?
'command' -type
'command' | Get-Member
'command' | Get-Type
'command' Get-Member
In this module, you’ll learn how to connect commands into a pipeline. You’ll also learn about filtering left, formatting right, and other important principles.
Learning objectives:
After you complete this module, you’ll be able to:
Prerequisites:
This module is part of these learning paths:
Q1. How would you find all members of a response starting with “F”?
Get-Process 'name of process' | Get-Member -Name F*
Get-Process 'name of process' | Get-Member -Name F
Get-Process 'name of process' | Get-Members -Name F*
Q2. What will this command answer with Get-Process 'some process' | Format-Table Name, CPU | Select-Object Name, CPU
“?
Q3. Which statement is the best choice for filtering left?
Get-Process | Select-Object Name | Where-Object Name -eq 'name-of-process'
Get-Process | Where-Object Name -eq name-of-process | Select-Object name-of-process
Get-Process -Name name-of-process | Select-Object Name
In this module, you begin learning the basics of programming by writing and running code in PowerShell.
Learning objectives:
After you’ve completed this module, you’ll be able to:
Prerequisites:
None
This module is part of these learning paths:
Q1. How does PowerShell compile?
Q2. Which of the following statements is true about PowerShell.
Prompt
is a cmdlet and Read-Host
is a parameter.Q3. What is wrong with this line of code? Read-host "What is wrong with this line of code?"
Read-host
should be uppercase.This module introduces you to scripting with PowerShell. It introduces various concepts to help you create script files and make them as robust as possible.
Learning objectives:
Prerequisites:
This module is part of these learning paths:
Q1. Which file extension is correct for a script?
Q2. What’s the correct way to declare a required parameter?
[Required]
.[Parameter(Mandatory)]
.Q3. How can you cause a terminating error?
Throw
followed by a string or object.Error
, like this: new Error("error message")
ErrorAction
, like this: -ErrorAction Error
I hope this Automate administrative tasks by using PowerShell Microsoft Quiz Answers would be useful for you to learn something new from this problem. If it helped you then don’t forget to bookmark our site for more Coding Solutions.
This Problem is intended for audiences of all experiences who are interested in learning about Data Science in a business context; there are no prerequisites.
Keep Learning!