Add Fetching system information script

This commit is contained in:
Rahul 2022-10-11 21:20:58 +05:30
parent 8200393950
commit e495af51c6
2 changed files with 17 additions and 0 deletions

View File

@ -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

View File

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