TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Tamim Anwar
NA
2
527
Please create a PS script to read the computer information from file
Apr 3 2021 11:24 AM
Seneca College gradually upgrade employee’s computer based on the following factors:
- Processor Model: i3=0 point, i5=20 points and i7 or above 40 points
- Processor Generation: e.g. Intel(R) Core(TM) i7-7600U CPU @ 2.80GHz o 8th Gen= 80 points, 7th Gen = 70 points, 6 Gen = 60 points ...etc.
- Total Memory: 4GB=0 point, 8GB=10 points, 16GB=20points, 32GB or higher=30 points
- Disk: Mechanical Drive=0 point, SSD=20 points
o If more than one drive, only the highest points count.
- OS: any OS older than Windows 10 = 0 point, Windows 10= 30 points
Please create a script to read the computer information from file Computers_info.csv, evaluate and save the result to Computers_eval.csv
- Any computer with lower than 100 points needs to be marked as “High Priority”. Evaluate your current computer and append the result to the Computers_eval.csv Please save your script as “YourName_Computer_eval.ps1” and upload it to MySeneca.
Scenario 1:
You have a computer with Intel(R) Core(TM) i5-6500T CPU @ 2.50GHz, 8GB memory, 256GB SSD running Windows 10. You would get:
20 + 60 + 10 + 20 + 30 = 130 points
Scenario 2:
You have a computer with Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz , 8GB memory, 1000GB Mechanical HDD running Windows 7. You would get:
40 + 30 + 10 + 0 + 0 = 80 points
Hint:
Get-WmiObject win32_processor
Get-WmiObject win32_PhysicalMemory | select Capacity
(Please note that you may have more than 1 piece of memory, you will need to get the total memory installed.)
Get-PhysicalDisk | select MediaType
Get-WMIObject win32_OperatingSystem | select Version
Reply
Answers (
0
)
Does anyone know if google API's free to use?
Need help in migrating CruiseControl.Net to Jenkins for MSTest