Cross Platform Changes for the script#4
Open
Pak-Man926 wants to merge 1 commit intobradleymaina:mainfrom
Open
Conversation
Co-authored-by: Copilot <copilot@github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🆕 Update: Cross-Platform Support — v2.0
📝 What Changed
The Laptop Inspector has been upgraded from a Windows-only tool to a cross-platform diagnostic solution that now runs on Windows, Linux, and macOS using PowerShell Core.
✨ Major Updates
🔄 PowerShell Core Migration
$IsWindows,$IsLinux,$IsMacOSfor OS detection🐧 Linux Support
🍎 macOS Support
🛠️ Technical Improvements
🚀 How to Run on Linux
Step 1: Install PowerShell Core
For linux devices install this tool for better results
`sudo apt install smartmontools upower pciutils lshw mokutil`Ubuntu/Debian:
Fedora/RHEL/CentOS:
Alpine:
Verify installation:
Step 2: Download the Script
Step 3: Run the Diagnostic
Basic scan:
With elevated privileges (for complete hardware info):
Custom output directory:
Generate CSV for tracking:
Generate JSON for automation:
All formats:
📊 Output Format
Reports are automatically generated in
./Reports/directory:🔧 Linux Troubleshooting
pwsh: command not foundsudo pwsh -File ./LaptopInspector_v2.ps1pwsh -ExecutionPolicy Bypass -File ./LaptopInspector_v2.ps1🎯 Requirements by Platform
Windows
Linux
sudoaccess for hardware informationlscpu,free,lsblk,uname,ipmacOS
📦 Key Features (Cross-Platform)
✅ CPU, RAM, GPU detection
✅ Storage diagnostics (SSD/HDD detection)
✅ Battery health analysis (Windows/Linux)
✅ Network adapter detection
✅ Security status checks
✅ Performance metrics
✅ Multi-format reports (TXT, HTML, CSV, JSON)
✅ Automatic OS detection
✅ Portable — no installation required
🔄 Breaking Changes
LaptopInspector.battoLaptopInspector_v2.ps1for clarity-Fileparameter with PowerShell directly🚀 Next Steps
LaptopInspector_v2.ps1pwsh -File ./LaptopInspector_v2.ps1./Reports/directory📝 Files Included
LaptopInspector_v2.ps1— Main cross-platform diagnostic scriptLaptopInspector.bat— Windows wrapper (legacy)README.md— Full project documentationLICENSE— MIT LicenseCommit_README.md— This changelog🔗 References
Version: 2.0
Date: April 2026
Compatibility: Windows 10+ | Ubuntu/Debian | Fedora/RHEL | Alpine | macOS