Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
expand_more
expand_more
format_list_bulleted
Concept explainers
Question
You have a lot of users who don’t delete or clean up their files and folders. You’ve been asked to create a script that will examine a file path, along with its subfolders, and produce the following three reports for the user:
- 10 Oldest Files
- 15 Largest Files
- 20 Recently Accessed Files
For each of the reports:
- Obtain the file path to be inspected by the user
- Output the information in the PowerShell console (3 reports = 3 outputs)
- Display a title and description
- Format the information as a list
- Properties should include:
- File name
- Full path to the file
- File size in MB
- Date and Time file or folder was created
- Date and Time file or folder was last changed
- Date and Time file or folder was last accessed
- Properties should include:
- Utilize new lines, ascii characters, colour, and other elements to improve the look of the report
Script Elements:
- Ensure instructions are easy to follow.
- Use of error handling for user input
- Contains no spelling or grammar errors
Part 2: Problem 2
You manager needs to perform an inventory audit report. Write a script that give you the following information while running locally on each machine.
- Computer Name
- OS Version
- Serial Number
- Manufacturer
- Model
- RAM in GB
- C: drive size in GB
- Current logged on user
For the report:
- Obtain the location to save the report specified by the user.
- The file type should be specified by the script and can be of your choosing
- Txt, csv, html, etc
- The file should be named inventory2022 + file type
- Ex. Inventory2022.txt, inventory2022.csv, inventory2022.html, etc
- Include a title, description and date/time the script was ran
- Utilize new lines, ascii characters, colour, and other elements to improve the look of the report
Script Elements:
- Ensure instructions are easy to follow.
- Use of error handling for user input
- Contains no spelling or grammar errors
Part 3: All-Together
You have been asked to combine the solutions to your problems into one script with a PowerShell driven menu.
- Put all your code into one PowerShell script file (.ps1)
- Each question should be within functions to group your code.
- Set it up so when you run it, you will be presented with a menu to execute the specified section
- Ensure your menu is detailed and has descriptions
- Ensure all variable and function names describe their propose
- Use new lines, spacing and consistency throughout your whole script
- Include an appropriate amount of comments explained in clearly defined sentences
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by stepSolved in 2 steps
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- Book: Windows PowerShell step by step 3rd edition - Ed Wilsonarrow_forwardDo you know what occurs when a key is pressed on a keyboard while a software is creating a file on a disc? What do you believe occurs when a key is pressed on a keyboard? I'm interested as to whether the key is put into the keyboard buffer before or after the file is created, assuming you are conversant with IRQ levels.arrow_forwardWhat about the txt file that saves and records the data that is imputted?arrow_forward
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education