Posted: February 26th, 2023
Apa format
COLUMBUS STATE COMMUNITY COLLEGE
INFORMATION SYSTEMS TECHNOLOGY (IST) DEPARTMENT
CSCI
1
7
72
– NETWORKING ILab #
3
– PowerShell Disk Usage ScriptDue Date: February 1
4
, 2023; Total Points: 25
Lab Objective:
The objective of this assignment is for students to apply concepts related to server
administration and Windows Server. Students will gain hands-on experience writing
PowerShell scripts in Windows Server 2012/R2 machine in a virtual environment.
Complete tasks 1 thru
10
of this assignment. To receive credit, you must complete all tasks listed in Table 1. Partial credit is not given.
Table 1. CSCI-1772 – Lab 3
|
||||||||
Task No. |
Task |
Lab Requirement |
||||||
1 |
Using a text editor, create a document to copy and paste each of the Cmdlets for the script. |
Comment out the following items using the # symbol before each line: your name, instructor name, and lab#. |
||||||
2 |
Review the following Microsoft documentation on the necessary for this lab: Variables, Get-Date, Get-PSDrive |
Determine how to set variable using the Get-Date & Get-PSDrive Cmdlets. |
||||||
3 |
Set a variable called Date with the values from the Get-Date Cmdlet. |
Comment out in the text file what the cmdlet does and enter the cmdlet on the line below the comment. |
||||||
4 |
Set a variable called Month, by extracting the month field from the Date variable set in task 3. |
Comment out in the text file what the cmdlet does and enter the cmdlet on the line below the comment.
|||||||
5 |
Set a variable called Day, by extracting the day field from the Date variable set in task 3. |
Comment out in the text file what the cmdlet does and enter the cmdlet on the line below the comment.
|||||||
6 |
Set a variable called Drive with the values from the Get-PSDrive C cmdlet. |
Comment out in the text file what the cmdlet does and enter the cmdlet on the line below the comment.
|||||||
7 |
Set a variable called FreeSpace, by extracting free from the Drive variable set in task 6. |
Comment out in the text file what the cmdlet does and enter the cmdlet on the line below the comment.
|||||||
8 |
Set a variable called Name with the hostname cmdlet as the value. |
Comment out in the text file what the cmdlet does and enter the cmdlet on the line below the comment.
|||||||
9 |
Use the Write-Host cmdlet to display the following message: On day CurrentDayNumber of month CurrentMonthNumber device: CurrentDeviceName has FreeDiskSpaceOnCDrive GBs in free disk space on the system drive. |
Comment out in the text file what the cmdlet does and enter the cmdlet on the line below the comment.
|||||||
10 |
Save the text file as CSCI1772-LAB3XXX. Replace XXX with your first, middle, and last name initials. Submit the file on Blackboard when completed. |
Yes |
Place an order in 3 easy steps. Takes less than 5 mins.