From e495af51c6d509be07ba1a26fb636ad274f055b0 Mon Sep 17 00:00:00 2001 From: Rahul Date: Tue, 11 Oct 2022 21:20:58 +0530 Subject: [PATCH] Add Fetching system information script --- scripts/fetching_system_information/README.md | 6 ++++++ scripts/fetching_system_information/script.py | 11 +++++++++++ 2 files changed, 17 insertions(+) create mode 100644 scripts/fetching_system_information/README.md create mode 100644 scripts/fetching_system_information/script.py diff --git a/scripts/fetching_system_information/README.md b/scripts/fetching_system_information/README.md new file mode 100644 index 0000000..094b4f0 --- /dev/null +++ b/scripts/fetching_system_information/README.md @@ -0,0 +1,6 @@ +# Fetching System Information +This is a simple script that fetches system information for your system.(Windows) + +## Usage +1. Clone the repo +2. Run python script.py \ No newline at end of file diff --git a/scripts/fetching_system_information/script.py b/scripts/fetching_system_information/script.py new file mode 100644 index 0000000..35cae6e --- /dev/null +++ b/scripts/fetching_system_information/script.py @@ -0,0 +1,11 @@ +import wmi + +c = wmi.WMI() +my_system = c.Win32_ComputerSystem()[0] + +print(f"Manufacturer: {my_system.Manufacturer}") +print(f"Model: {my_system. Model}") +print(f"Name: {my_system.Name}") +print(f"NumberOfProcessors: {my_system.NumberOfProcessors}") +print(f"SystemType: {my_system.SystemType}") +print(f"SystemFamily: {my_system.SystemFamily}")