Project 1
Course Title PowerShell
Project Code PWSO v1-1 Project 1
Project Title Power Scripting
Pages 3 ()
Released April 10, 2015
Revised June 2, 2017
Copyright 2017 All rights reserved Page 1
PWSO v1-1 Project 1 2017-0602
Power Shell
Project 1: Power Scripting
INTRODUCTION
You are a network administrator who is responsible for 100 users and 20 servers for a
medium size business. As an administrator who has multiple tasks to get done throughout
the day, you need to develop a to help you manage routine tasks that
you have to take care of everyday. To simplify your administration create a script with
the following objectives
OBJECTIVES
Script that will create multiple folders using a do loop and variable
CREATE MULTIPLE FOLDER SCRIPT GUIDELINES
SETTING UP THE VARIABLES:
Open PowerShell ISE
Create a variable $intfolders that has a value of 10
Create a variable $intPad that has a value of 0
Create a variable $i that has a value of 1
Create a variable for the new folder
o New-Variable Name strPrefix Value testfolder Option
constant
CREATING THE LOOP STATEMENT
Do {
Set If condition
o if ($i -lt 10)
Set Command when Condition is True
o {New-Item path C: -name $strprefix$intpad$i type directory}
Set Command when Condition is False
o else
o {New-Item path C: -name $strprefix$i type directory}
Set $i to increment by 1
o $i++
o Close the Do Statement using }
Copyright 2017 All rights reserved Page 2
PWSO v1-1 Project 1 2017-0602
ADD THE UNTIL STATEMENT TO STOP LOOPING
Until ($i -eq intfolders +1)
SAVE THE SCRIPT AND DEBUG IF IT FAILS
Copyright 2017 All rights reserved Page 3
PWSO v1-1 Project 1 2017-0602
MARKING SCHEME
You will be graded on:
Project component Points
Setting up of variables 20
Creating Folders Script 20
Stopping the Loop 20
Script is Functional 40
The total number of possible points is: 100
PENALTIES
1) For each day that a project is late, 5% will be deducted
2) Projects that are more than three days late will earn a maximum score of 60%
Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.
You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.
Read moreEach paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.
Read moreThanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.
Read moreYour email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.
Read moreBy sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.
Read more