We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8200393 commit e495af5Copy full SHA for e495af5
2 files changed
scripts/fetching_system_information/README.md
@@ -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
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}")
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