Get Use variables, arrays, and hash tables in Windows PowerShell scripts Microsoft Quiz Answers
This learning path explains how to work with variables, arrays, and hash tables in Windows PowerShell scripts.
Prerequisites:
- Familiarity with Windows networking technologies and implementation
- Familiarity with Windows Server administration, maintenance, and troubleshooting
- Familiarity with Windows PowerShell and its commands to perform specific tasks
- Familiarity with PowerShell cmdlets used for system administration tasks related to Active Directory, network configuration, server administration, and Windows 10 device administration
- Familiarity with Windows PowerShell pipeline, PowerShell providers, and PowerShell drives
- Familiarity with CIM and WMI technologies
Enroll on Microsoft
Module 1: Manage variables in Windows PowerShell scripts
This module explains how to create variables, name them correctly, and assign the correct data type, while ensuring the data you store in variables is in the correct format and easily accessible.
Learning objectives:
Upon completion of this module, the learner will be able to:
- Explain the purpose of variables.
- Describe the naming rules for using variables.
- Explain how to assign a value to a variable.
- Describe variable types.
- Explain how to assign a variable type.
Prerequisites:
- Familiarity with Windows networking technologies and implementation
- Familiarity with Windows Server administration, maintenance, and troubleshooting
- Familiarity with Windows PowerShell and its commands to perform specific tasks
- Familiarity with PowerShell cmdlets used for system administration tasks related to Active Directory, network configuration, server administration, and Windows 10 device administration
- Familiarity with Windows PowerShell pipeline, PowerShell providers, and PowerShell drives
- Familiarity with CIM and WMI technologies
This module is part of these learning paths:
Quiz 1: Knowledge check
Q1. Which character is used to identify variables?
Q2. Which command would you use to assign a numerical value of 20 to a variable?
- $num = 20
- $num = “20”
- $num -eq 20
Q3. The variable $ip
is a string with a value of “10.100.4.2”. Which command would you use to divide $ip
into four separate numbers?
- $ip.Divide(4)
- $ip.Split(4)
- $ip.Split(“.”)
Q4. Which of the following options is a method that you can use with DateTime variables?
- ToLower()
- ToShortDateString()
- DayOfWeek
Module 2: Work with arrays and hash tables in Window PowerShell scripts
This module explains how to use arrays and hash tables in Windows PowerShell scripts.
Learning objectives:
Upon completion of this module, the learner will be able to:
- Explain the purpose of an array.
- Work with arrays and their contents.
- Work with array lists and their contents.
- Manipulate arrays and array lists.
- Explain the purpose of a hash table.
- Work with hash tables and their contents.
- Manipulate hash tables.
Prerequisites:
- Familiarity with Windows networking technologies and implementation
- Familiarity with Windows Server administration, maintenance, and troubleshooting
- Familiarity with Windows PowerShell and its commands to perform specific tasks
- Familiarity with PowerShell cmdlets used for system administration tasks related to Active Directory, network configuration, server administration, and Windows 10 device administration
- Familiarity with Windows PowerShell pipeline, PowerShell providers, and PowerShell drives
- Familiarity with CIM and WMI technologies
This module is part of these learning paths:
Quiz 1: Knowledge check
Q1. How do you refer to the first item in an array?
- $users[0]
- $users[1]
- $users[“1”]
Q2. Which command would you use to update a value associated with a key named dc1
in a hash table?
- $computers.keys(“dc1”) = “Domain Controller”
- $computers[5] = “Domain Controller”
- $computers.dc1 = “Domain Controller”
Conclusion:
I hope this Use variables, arrays, and hash tables in Windows PowerShell scripts 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!
More Coding Solutions >>
LeetCode Solutions
Hacker Rank Solutions
CodeChef Solutions