What It Does
This script gathers and displays basic information about your Windows computer. It reads data directly from Windows and presents it in an organized, easy-to-read format.
The script collects the following information:
- Computer name, manufacturer, and model
- Operating system name, version, and architecture
- Processor name and number of cores
- Total and available memory (RAM)
- Total and free space on your C: drive
How to Use
- Open PowerShell on your computer. You can do this by pressing the Windows key, typing "PowerShell", and pressing Enter.
- Navigate to the folder where you saved the script. For example, if you saved it in your Downloads folder, type the following command and press Enter:
cd ~\Downloads
- Run the script by typing the following command and pressing Enter:
.\Get-SystemInfo.ps1
The script will display your system information immediately. No input is required.
Expected Output
When the script runs successfully, you will see output similar to the following. Your actual values will differ based on your computer's hardware:
=== System Information ===
Computer Name: DESKTOP-ABC123
Manufacturer: Dell Inc.
Model: XPS 15 9520
=== Operating System ===
OS Name: Microsoft Windows 11 Pro
Version: 10.0.22621
Architecture: 64-bit
=== Processor ===
CPU: 12th Gen Intel(R) Core(TM) i7-12700H
Cores: 14
Logical CPUs: 20
=== Memory ===
Total RAM: 32 GB
Free RAM: 18.5 GB
=== Storage (C: Drive) ===
Total Space: 476.94 GB
Free Space: 203.12 GB
Understanding the Output
Here is what each section means:
- System Information: Your computer's name and hardware manufacturer. The model tells you the specific product line.
- Operating System: Which version of Windows you are running. The architecture shows whether you have 32-bit or 64-bit Windows.
- Processor: Your CPU model. Cores are physical processing units. Logical CPUs include virtual cores from technologies like Hyper-Threading.
- Memory: Total RAM is how much memory your computer has. Free RAM is how much is currently available.
- Storage: Total space is your C: drive capacity. Free space is how much room remains for files.
Caution
This script only reads information. It does not change any settings or modify your computer in any way.
The script only checks the C: drive. If you have multiple drives, their information will not be displayed.
Requirements
- Windows operating system (Windows 10 or Windows 11 recommended)
- PowerShell 5.1 or later (included with Windows 10 and 11)
- No administrator privileges required
Troubleshooting
If you see an error about "running scripts is disabled", you need to allow PowerShell to run scripts. Open PowerShell as Administrator and run the following command:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
Type "Y" and press Enter when prompted. Then try running the script again.