Database System Concepts
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
Bartleby Related Questions Icon

Related questions

bartleby

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
  • 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
Check Mark
Knowledge Booster
Background pattern image
Computer Science
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.
Recommended textbooks for you
Text book image
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Text book image
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Text book image
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
Text book image
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education