0% found this document useful (0 votes)
70 views

Creating A Powershell Script As Per A Scenario of Your Choice

The document provides requirements for an assignment to write a PowerShell script that asks a user for input, uses variables and control structures, writes output to a file, and documents the script. Students must submit the PowerShell script and a video walkthrough demonstrating what the code is accomplishing. The script needs to meet specific criteria like using variables, if statements, pipelines, writing to a file, and displaying a completion message.

Uploaded by

sandeep kumar
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
70 views

Creating A Powershell Script As Per A Scenario of Your Choice

The document provides requirements for an assignment to write a PowerShell script that asks a user for input, uses variables and control structures, writes output to a file, and documents the script. Students must submit the PowerShell script and a video walkthrough demonstrating what the code is accomplishing. The script needs to meet specific criteria like using variables, if statements, pipelines, writing to a file, and displaying a completion message.

Uploaded by

sandeep kumar
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Info8025 – IT Automation - Assignment 3

Creating a PowerShell Script as per a Scenario of


Your Choice

Requirements

For this assignment you are expected to come up with a simple scenario (one that we haven’t
covered in class already) and then write a PowerShell script based on that scenario.
The following are the things you need to make sure to include in your scenario and, therefore,
incorporate into your script as well.
Make sure that your script accomplishes the following:

- Asks the user to provide his/her input for two things


- Creates and uses at least 4 variables: 2 strings and 2 numeric
- Uses decision making (ie. if statements), two times
- Makes use of a pipeline
- Writes or exports data to a file
- Displays a message to the user informing him/her that the processing is completed
and, also, letting the user know the name of the file to which the data is saved.
- Notes:
o Remember to use variables (vs. hardcoding values) whenever possible.
o Make sure to use camelCase naming convention when naming variables.
o Make sure your code is well-formatted and well-documented (with
comments), as per the good coding practices we discussed in class.

Submission

You are required to submit the following 2 things to the Assignment 3 Dropbox on
eConestoga:
1. Your script file:
▪ Name your script as follows: Assign3_Your_First_Name_Student#

2. A YouTube URL of a screen recording of you doing a walk-thru on your code by


reflecting what each of the individual lines and sections of the code are accomplishing.
Notes re: the recording:
▪ Create a single, up to 2 minutes long video for this
▪ Upload the recording to YouTube
▪ Make sure the video is made public so that I can view it
▪ Submit the URL to your video to the Assignment 1 Dropbox on eConestoga.

Resources

▪ ActivePresenter - Free screen recorder & screencast video editor


https://atomisystems.com/activepresenter/free-edition/

▪ Zoom

Assessment

• You will be graded by the rubric found on eConestoga, under Course Tools -> Rubrics.
• This is an independent work assignment: you may not work with others while working
on this assignment or collaborate or share your answers, code or anything else.
• You may use the book, the course notes, the PowerShell Help system.
• You may use the web, for generalized PowerShell coding practices research.
• You may not use code copied from other people, the web or any other source.

You might also like