0% found this document useful (0 votes)
18 views2 pages

INFO 8026 Assignment 1

The document provides instructions for an assignment to write a PowerShell script based on a scenario. The script must get user input, use variables, include if statements and pipelines, write to a file, and display a completion message. Students must submit their script and screenshots of the output.

Uploaded by

ganga lalwani
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views2 pages

INFO 8026 Assignment 1

The document provides instructions for an assignment to write a PowerShell script based on a scenario. The script must get user input, use variables, include if statements and pipelines, write to a file, and display a completion message. Students must submit their script and screenshots of the output.

Uploaded by

ganga lalwani
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

INFO-8025 – IT Automation – Assignment-1

Creating a PowerShell Program 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 input for two things
• Creates and uses at least 4 variables: 2 strings and 2 numeric
• Uses decision making (i.e. 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:
• Remember to use variables (vs. hardcoding values) whenever it makes sense.
• Use full names for commands and parameters. Do not use aliases.
• Important: You are expected to use the programming standards and
commands covered in class.
• Make sure your code is well-formatted and well-documented with comments,
as per the good coding practices we discussed in class:
❑ Include the comments explaining what your script accomplishes and that
document individual lines and/or sections of the code by explaining what
they address. The header comments must explain the problem scenario in
detail.
❑ Ensure that your code looks clean and professional: use indentation and
white space so that the code is easy to read. Remove any lines of code that
are not needed.
❑ Make sure that you test your program before you submit it!
❑ Make sure to review the INFO-8026 Programming Checklist.

Saving and Submitting Your Work


1. Upload your solution for Assignment 1, your PowerShell script file to
Assignment #1 Dropbox on eConestoga.
a. Name your script as follows: FirstName_<Student#>_As1.ps1
b. If you experience issues while trying to upload a .ps1 file, re-save
your script as a .txt file and submit that file instead.

2. Upload a pdf document named FirstName_<Student#>.pdf containing


screenshots of the console/PowerShell output to Assignment #1 Dropbox
on eConestoga. Make sure that the console/output screen is visible in all
the screenshots.

Assessment of Your Assignment 1


• You will be graded by the marking rubric found on eConestoga, under
Course Tools -> Rubrics.
• This is an independent assignment: you may not work with other students
while working on this assignment or collaborate or share your answers, code
or anything else.
• You may use the book, the course notes, and 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 Internet or any other
source.

You might also like