Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Power shell scripts That will: Ask the user to type the path to a folder Example: C:Users Recursively examine the files and folders inside that

Power shell scripts

That will:

Ask the user to type the path to a folder

Example: C:\Users\

Recursively examine the files and folders inside that path and show the following three output or report:

  • Top 5 Newest Files
  • Show the 5 most recent files created.

  • Top 15 Largest Files
  • Show the 15 largest files.

  • Top 20 Recently Accessed Files
  • Show the 20 most recently accessed files sorted by file type.

findings as three files in the C:\Reports\2021\ directory (one file per output or report).

  • Format the information as a table with headings, columns, and rows.
  • Each file should start with a line that includes the report's name (see above) followed by one or more lines that include a two-sentence description of what the report is.
  • Use the following file names:
  • Top 5 Newest Files: top5recent.txt
  • Top 15 Largest Files: top15largest.txt
  • Top 20 Recently Accessed Files: top20accessed.txt

All three of the output or reports should include the following information in the output,

in the following order:

  • Full path to the file.
  • File size in GB.
  • Date and time the file or folder was last changed.
  • Date and time the file or folder was last accessed.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Students also viewed these Databases questions