Comment block: Set up comments using the standard format in a <# and #> container, which should contain a synopsis, description, and at least one example which shows how to run the script. Set up an array: Put values in the array $ComputerNames, containing the names of two computers: DC1 and W10-CLIENT. Prompt for user's name: Use the text Please enter your first name, store the value the user will provide in a variable named $FirstName, and write out the text Hello followed by a space, followed by the name entered. Prompt for report type, and store value provided: Ask the user to enter AD if the information on Active Directory Users is required, and WMI for Windows Machine Instrumentation. Store the answer provided in variable $ReportType Confirm report selection: If an Active Directory report was requested, on a new line print the message "A list of all AD users was requested for computers " followed by the contents of the $ComputerNames array. If a Windows Machine Instrumentation report was requested, on a new line write the message "A list of all processes was requested." Print a "Thank You" Message on a new line: Before stopping, the script should display the message Thank you followed by a space then the value in  variable $FirstName followed by another space and the text for using this program.

Question
  1. Comment block: Set up comments using the standard format in a <# and #> container, which should contain a synopsis, description, and at least one example which shows how to run the script.
  2. Set up an array: Put values in the array $ComputerNames, containing the names of two computers: DC1 and W10-CLIENT.
  3. Prompt for user's name: Use the text Please enter your first name, store the value the user will provide in a variable named $FirstName, and write out the text Hello followed by a space, followed by the name entered.
  4. Prompt for report type, and store value provided: Ask the user to enter AD if the information on Active Directory Users is required, and WMI for Windows Machine Instrumentation. Store the answer provided in variable $ReportType
  5. Confirm report selection: If an Active Directory report was requested, on a new line print the message "A list of all AD users was requested for computers " followed by the contents of the $ComputerNames array. If a Windows Machine Instrumentation report was requested, on a new line write the message "A list of all processes was requested."
  6. Print a "Thank You" Message on a new line: Before stopping, the script should display the message Thank you followed by a space then the value in  variable $FirstName followed by another space and the text for using this program.

Expert Answer

Want to see the step-by-step answer?

Check out a sample Q&A here.

Want to see this answer and more?

Experts are waiting 24/7 to provide step-by-step solutions in as fast as 30 minutes!*

*Response times may vary by subject and question complexity. Median response time is 34 minutes for paid subscribers and may be longer for promotional offers.
Tagged in
Engineering
Computer Science

Programing Language

Related Computer Science Q&A

Find answers to questions asked by students like you.

Q: 6.29 LAB: Max and min numbers C++   Write a program whose inputs are three integers, and whose ou...

A: Answer: step 1: take three inputs step 2 : define two functions one for finding largest among three ...

Q: The operating system is responsible for rendering a variety of services to the computer hardware and...

A: Storage management responsibilities of Windows 10 Storage sense It is one of the features that does ...

Q: I have to prove the power function by induction, and then prove tower by induction as well knowing t...

A: Towers of power: It can be said as an operation based on few iterations. It can also be said as expo...

Q: *I am using the program mindtap Chapter 9 defined the struct studentType to implement the basic prop...

A: A structure is a user-defined data type that can be used to group different data types items into a ...

Q: Discuss the reasons why you consider modern (time-sharing, multi-programming, and real-time) operati...

A: MODERN OPERATING SYSTEM IS BETTER , MORE ROBUST AND MORE EFFICIENT - Modern operating system provide...

Q: Discuss the difference between void pointer and null pointer with example

A: Step 1:- Void Pointer:- Void pointer is defined as a pointer variable that does not have any data ty...

Q: please help please

A: Given,           The symbol to be used = "$"  user-defined integer variable n is declared for storin...

Q: Suppose that someone sets up a vacation reply and sends a message before logging out. Unfortunately,...

A: Normally, message sent before logging out will generate a canned reply, then its arrival will genera...

Q: Write a pseudocode that takes five float numbers as input and determines and prints the largest, sma...

A: Pseudo Code: It is an informal language which helps the programmers to develop algorithms. It is a ...

Q: a) Given a depth-first search tree T, the set of edges in T are referred to as "tree edges" while th...

A: The program is written in c.

Q: C# visual studio programming.

A: Code is save as the name that is the Form1.cs code.   File is saved as the name that is MyFile.txt. ...

Q: Write a program to read 2 numbers. Display the greatest of all.

A: import java.util.Scanner; public class Tester{  public static void main(String[] args) {    Scanner ...

Q: Basic C OperationsQ1. The Fibonacci numbers are computed according to the following relation: F, = F...

A: Below is the required C code. Program Approach: Include header files to get a standard I/O. Define ...

Q: Can you write the answer in java

A: Program description: The main objective of the Reverse.java file is to read a java file, HelloPrinte...

Q: Write a while loop that prints userNum divided by 4 (integer division) until reaching 2 or less. Fol...

A: Syntax: while Condition:     # Loop-body   Flowchart:

Q: The university system should enable the staff of each academic department to examine the courses off...

A: Actually, the answer has given below:

Q: Suppose a file named "numbers.txt" is on the disk and that it contains this data: 374013 What can yo...

A: Text files Files are very meaningful for storing data permanently on storage devices such as hard d...

Q: Let X={2,4,5} and Y={1,2,4,6}. Which of the following arrow diagrams determine functions from X to Y...

A: Actually, the answer has given below:

Q: 6.26 In Python,   Write a program that first gets a list of integers from input. That list is follow...

A: Program code: # Get the first line of input s = input()   #array of integers lst = [] #array to the ...

Q: Add the missing inputs and outputs (3.4.1-3.4.5) below: 2 3.4.2 4 3.4.3 3.4.1 cube - 1 26 8 3.4.4 k ...

A: Vector outlines are essentially charts that contain vectors. That is presumably pretty self-evident....

Q: Use Figure 3 provided in the handout to answer this question. Write a SQL statement that displays th...

A: SELECT Cus_Code, Cus_FName, Cus_LName, Cus_Balance AS Amount Owed FROM CUSTOMER ORDER BY Cus_Code;

Q: Assume SinglyLinkedList class has one member variable, self._head. To store n items in an instance o...

A: In a single linked list, every node of the linked list has at least two items : The first item is n...

Q: Write a java program so it keeps a count of the number of guesses that the user makes. When the user...

A: import java.util.Scanner; public class NumberGuessGame {      public static void main(String[] args)...

Q: Using a 5-bit version of booth algorithm, multiple 13 and -2. Verify your answer. please show all yo...

A: Booth Multiplication Algorithm : Booth Algorithm gives a method for duplicating paired numbers in ma...

Q: Answer a, b and f only.

A: Click to see the answer

Q: Assume this definition: ofstream dataFile; Which of these comparisons between dataFile and cout are ...

A: example for 1 and 3: ofstream outfile; outfile.open("Test.txt"); outfile &lt;&lt; data &lt;&lt...

Q: You have been provided with a QTCreator project called Project12 _ Student. Open the project in QTCr...

A: Actually, the code has given below:

Q: COURSE: OPERATING SYSTEMS QUESTION: Explain what is Concurrency include with problems in Concurrency...

A: Concurrency is the operation at the very same time of different instruction sequences. If there are ...

Q: What do you need to know to dereference a pointer?

A: Step 1:-   A pointer is a variable which stores the address of another variable.dereference operator...

Q: Go to the Blockquote Styles section. Amy has included three sample reviews from users of the Save yo...

A: &lt;!DOCTYPE html&gt;&lt;html&gt;&lt;head&gt;   &lt;title&gt;BLOCKQUOTE&lt;/title&gt;   &lt;style ty...

Q: 1 ) N integer array: long[] LongArr2) Method for entering integer values as follows: void input()- N...

A: Program: using System; //create namespace ConsoleApp3 namespace ConsoleApp3 {     //create class Pro...

Q: Using Java and using only the scanner class:   Part B:  For Loop Program Write a program to compute ...

A: Introduction of the Program: The Java program takes the number of terms from the user and then the p...

Q: Implement the interface DictionaryInterface&lt;string, string&gt; to create a class of glossaries. A...

A: // here we are Define a package package test3; // Here we are import util library import java.util.I...

Q: ERD conditions: ReadNeed to know the date and content of the reading.i. The storage of previous wate...

A: ERD An Entity Relationship Diagram (ERD) is a depiction of information structures. An Entity Relatio...

Q: 8.17 LAB: Inventory (linked lists: insert at the front of a list) C++   Given main(), define an I...

A: Actually, the code has given below:

Q: Computer Science Question

A: public class Q4_1{ public static coid main(string[ ] args){ int [ ] var1={1,2}; int var2=0; var2=fun...

Q: Java Program

A: import java.util.Scanner; public class Tester{  public static void main(String[] args) {    Scanner ...

Q: Python Programming

A: In the solution of a given program, first, we read a string and convert it into the list. Then use t...

Q: Python Programming

A: print("Apples:$10.00", "Pears:$",round(pears, 2), "Cost:$",round(apples+pears, 2))

Q: Take input from user: age, weight, dress color, shoe size, is Male, first character of name and last...

A: Note: Here you didn't mention any programming language So We are writing the program in C++ Programm...

Q: PYTHON

A: Code: lowerbound = int(input('\nEnter the lower Bound: ')) upperbound = int(input('Enter the Upper ...

Q: Do the tables in figure 1 exhibit entity referential integrity? Why or why not?

A: Do the tables in figure 1 exhibit entity referential integrity? Why or why not?

Q: Assembly Task: •Code and debug a complete AL program that follows the provided pseudocode. •Do NOT u...

A: Code and debug a complete AL program that follows the provided pseudocode.   •Do NOT use high-level ...

Q: Given the following information for a one-year project, answer the following questions. Recall that ...

A: Calculation of SPI is as follows: SPI = EV/PV = 20000/23000 = 0.869