Question
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.
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 |
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started