Use a foreach to print out a message


For this assignment, you will create a script named network.ps1 that meets the requirements listed below:

* Includes appropriate commenting (see Role of Comments which is also located in the Course Materials and Resources in your Moodle course).

* Protocols loop
1. Create an array called protocols that contains the following items:
1. Ethernet
2. ATM
3. Frame-Relay

2. Use a foreach loop to print out each item in the array

* Subnets loop
1. Create an array that contains the following subnets:
1. 10.200.150.0
2. 10.200.143.0
3. 10.200.152.0

2. Use a foreach to print out a message that state "The computer with the subnet is located in room XXX" where XXXis the 3rd octet in the subnet. (Hint use the split() function)

* Create a for loop that prints the numbers from 1 to 256

* Create a for loop that prints the IP addresses from 10.200.150.1 to 10.200.150.254

* Creating user accounts: Create a for loop that creates user with the username of studentID1 - studentID10 with a password of Password1 (where studentID is your student username)

Once you have completed the assignment, upload the network.ps1 script. 

Request for Solution File

Ask an Expert for Answer!!
Programming Languages: Use a foreach to print out a message
Reference No:- TGS0108846

Expected delivery within 24 Hours