Skip to content

Commit e495af5

Browse files
committed
Add Fetching system information script
1 parent 8200393 commit e495af5

2 files changed

Lines changed: 17 additions & 0 deletions

File tree

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Fetching System Information
2+
This is a simple script that fetches system information for your system.(Windows)
3+
4+
## Usage
5+
1. Clone the repo
6+
2. Run python script.py
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import wmi
2+
3+
c = wmi.WMI()
4+
my_system = c.Win32_ComputerSystem()[0]
5+
6+
print(f"Manufacturer: {my_system.Manufacturer}")
7+
print(f"Model: {my_system. Model}")
8+
print(f"Name: {my_system.Name}")
9+
print(f"NumberOfProcessors: {my_system.NumberOfProcessors}")
10+
print(f"SystemType: {my_system.SystemType}")
11+
print(f"SystemFamily: {my_system.SystemFamily}")

0 commit comments

Comments
 (0)