mirror of
https://github.com/metafy-social/python-scripts.git
synced 2024-11-23 20:11:10 +00:00
Add Fetching system information script
This commit is contained in:
parent
8200393950
commit
e495af51c6
6
scripts/fetching_system_information/README.md
Normal file
6
scripts/fetching_system_information/README.md
Normal 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
|
11
scripts/fetching_system_information/script.py
Normal file
11
scripts/fetching_system_information/script.py
Normal 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}")
|
Loading…
Reference in New Issue
Block a user