Question: 2:46 Back Assignment1_CST205_MD Assignment 1: CST205 Introduction to Scripting and PowerShell Last date of submission: Oct 26, 2022 Weightage: 10% *********** Instructions: 1. There
2:46 Back Assignment1_CST205_MD Assignment 1: CST205 Introduction to Scripting and PowerShell Last date of submission: Oct 26, 2022 Weightage: 10% *********** Instructions: 1. There are TWO (2) questions in Assignment. 2. Weightage of each question: Ques 1 -5%, Ques2-5% 3. Attach clear screenshots of each step. Blurry screenshots are not accepted. 4. Make one document pdf for these TWO questions. 5. Work should be organized and write comments of each step. 6. Submit it into the dropbox of your d2L/iLearn. 7. Add appropriate references at the last page of your document. ********* Ques 1. a) Explain foreach and foreach-object cmdlets? Illustrate using examples. b) Write a Powershell script to get the length of files greater than 100KB in D:\\ using foreach loop. c) Write a Powershell script to find the leap year using if-else statement. Input the year from the user. Ques 2. Create the following hashtable and save it locally in your machine named Students.ps1. Name Kim Age 5 Marshal 13 Cherry 8 William 17 Amer 15 Nikol 9 Your result should be a table which should contain the name of the student and mention whether they are in Junior School (Age between 4 - 10) or in Senior School (Age between 11-17). Name Kim Age Junior Marshal Senior Cherry Junior William Senior Amer Senior Nikol Junior
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
