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}")