Question
Problem Douglas, your manager, says that upper management is coming down hard on him to get his budget for computer upgrades submitted. He wants to
Problem
Douglas, your manager, says that upper management is coming down hard on him to get his budget for computer upgrades submitted. He wants to upgrade everyone to at least 8GB of memory (RAM) and replace everyone's C drive with a solid-state hard drive.
However, he doesn't know how many hard drives or how much memory (RAM) to buy. He has a list of computers to check in a text file to help make things a little easier for you.
Please create a script that will:
Ask the user to type the path to a text file; this is the text file with the computer names in it.
Example: C:\Users\User\Desktop\Computers.txt
For each of the computers listed in the text file, retrieve the size and free space of the C drive and retrieve how much memory (RAM) the computer has.
Save your findings as one professional looking file in the C:\Reports\ directory.
- Format the information as a table with headings, columns, and rows.
- Your file should start with a line that includes the report's name (Inventory report) followed by one or more lines that include a two-sentence description of what the report is.
- Use the following file name: Inventory.txt
- Use of new lines, ascii characters, and other elements to improve the look of the report should be utilized.
You should include the following information in your output, in the following order:
- Computer name.
- How much memory (RAM) the computer has in GB.
- IP address.
- C drive size in GB.
- C drive free space in GB.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Certainly I can help you with that Heres a Python script that fulfills the requirements you mentioned python import os import socket import platform F...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