diff --git a/System Info (ps1)/README.md b/System Info (ps1)/README.md index d6af1b2..2d22bea 100644 --- a/System Info (ps1)/README.md +++ b/System Info (ps1)/README.md @@ -62,14 +62,13 @@ pwsh.exe -File .\Get-SystemSecurityAndHardwareInfo.ps1 -OutputFile report.txt - Download and run directly from a raw GitHub URL (only if you trust the URL): ```powershell -# Example using the iwr | iex pattern you provided (replace URL with this repo's raw file URL when publishing): -iwr -UseBasicParsing https://raw.githubusercontent.com///main/Get-SystemSecurityAndHardwareInfo.ps1 | iex + iwr -UseBasicParsing "https://git.smartcraft.me/Smartcraft-Media-Tech/System-Info/raw/branch/master/System%20Info%20%28ps1%29/Get-SystemSecurityAndHardwareInfo.ps1" | iex ``` Security note: `iwr | iex` downloads and immediately executes code from the given URL. Only run such commands for sources you fully trust. A safer approach is to download the file, inspect it, then execute it locally: ```powershell -iwr -OutFile .\Get-SystemSecurityAndHardwareInfo.ps1 https://raw.githubusercontent.com///main/Get-SystemSecurityAndHardwareInfo.ps1 + iwr -OutFile .\Get-SystemSecurityAndHardwareInfo.ps1 "https://git.smartcraft.me/Smartcraft-Media-Tech/System-Info/raw/branch/master/System%20Info%20%28ps1%29/Get-SystemSecurityAndHardwareInfo.ps1" # Inspect the file, then run: pwsh.exe -File .\Get-SystemSecurityAndHardwareInfo.ps1 -OutputFile my_report.txt ```