From the ATTACHED picture of a sample PS script, explain the below questions 8 to 11: 8. That is the reason for the comment [#] in line one? 9. What does line three indicate? 10. What does the “node” declaration in line six mean? 11. How many DSC resource types are defined in this script and name them.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
100%

Book reference: Windows PowerShell Step by Step 3rd Edition - Ed Wilson
Chapter 21

From the ATTACHED picture of a sample PS script, explain the below questions 8 to 11:


8. That is the reason for the comment [#] in line one?
9. What does line three indicate?
10. What does the “node” declaration in line six mean?
11. How many DSC resource types are defined in this script and name them.

Windows PowerShell ISE
File Edit View Tools Debug Add-ons Help
Untitled22 ps1" X
#Requires -Version 5.0
2
3
1
Configuration scriptFolderversion
4
5 ạ{ Param (Sserver = 'server1')
6
7
8
node $server
9 H{ Eile scriptFiles
10
11
12 B{
13
SourcePath = "\ldc1\Share\",
Ensure = "present"
DestinationPath = "c:\scripts"
Recurse = Strue
Type = "Directory
14
15
Registry AddscriptVersion
16
17
18 É{
Key = "HKEY_Local_Machine\Software\ForScripting",
ValueData = "1.0"
valuename = "scriptsVersion"
19
Ensure = "Present"
20
21
22
23
Transcribed Image Text:Windows PowerShell ISE File Edit View Tools Debug Add-ons Help Untitled22 ps1" X #Requires -Version 5.0 2 3 1 Configuration scriptFolderversion 4 5 ạ{ Param (Sserver = 'server1') 6 7 8 node $server 9 H{ Eile scriptFiles 10 11 12 B{ 13 SourcePath = "\ldc1\Share\", Ensure = "present" DestinationPath = "c:\scripts" Recurse = Strue Type = "Directory 14 15 Registry AddscriptVersion 16 17 18 É{ Key = "HKEY_Local_Machine\Software\ForScripting", ValueData = "1.0" valuename = "scriptsVersion" 19 Ensure = "Present" 20 21 22 23
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education