Create a variable $intfolders that has a value of ten


Problem

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 Power Shell script to help you manage routine tasks that you have to take care of everyday.

Script that will create multiple folders using a do loop and variable CREATE MULTIPLE FOLDER SCRIPT GUIDELINES SETTING UP THE VARIABLES:

To simplify your administration create a script with the following objectives:

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
Set Command when Condition is True o {New-Item -path C: -name $strprefix$intpad$i -type directory} Set If condition o if ($i -lt 10) Do {
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}

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: Create a variable $intfolders that has a value of ten
Reference No:- TGS03340826

Expected delivery within 24 Hours