diff --git a/README.md b/README.md index 92e6f72..5794f56 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ No Python, third-party modules, or installation is required. From **PowerShell**: ```powershell -irm 'https://proxy.dandaedre.com/gitea/Dandaedre/WinDiagnostics/raw/branch/main/home/beffroi/Downloads/WindowsMaintenanceReport.ps1' | iex +irm 'https://proxy.dandaedre.com/gitea/Dandaedre/WinDiagnostics/raw/branch/main/WindowsMaintenanceReport.ps1' | iex ``` This downloads the current version of the script into memory and executes it. @@ -27,7 +27,7 @@ For the most complete report, run PowerShell **as Administrator**. The script can also be launched directly from `cmd.exe`: ```cmd -powershell.exe -NoProfile -Command "irm 'https://proxy.dandaedre.com/gitea/Dandaedre/WinDiagnostics/raw/branch/main/home/beffroi/Downloads/WindowsMaintenanceReport.ps1' | iex" +powershell.exe -NoProfile -Command "irm 'https://proxy.dandaedre.com/gitea/Dandaedre/WinDiagnostics/raw/branch/main/WindowsMaintenanceReport.ps1' | iex" ``` ## Running With Parameters @@ -41,19 +41,19 @@ The script supports command-line parameters such as: When parameters are required, create a PowerShell script block from the downloaded script: ```powershell -& ([scriptblock]::Create((irm 'https://proxy.dandaedre.com/gitea/Dandaedre/WinDiagnostics/raw/branch/main/home/beffroi/Downloads/WindowsMaintenanceReport.ps1'))) -EventLogDays 30 +& ([scriptblock]::Create((irm 'https://proxy.dandaedre.com/gitea/Dandaedre/WinDiagnostics/raw/branch/main/WindowsMaintenanceReport.ps1'))) -EventLogDays 30 ``` For example: ```powershell -& ([scriptblock]::Create((irm 'https://proxy.dandaedre.com/gitea/Dandaedre/WinDiagnostics/raw/branch/main/home/beffroi/Downloads/WindowsMaintenanceReport.ps1'))) -EventLogDays 30 -MaxEventErrors 250 +& ([scriptblock]::Create((irm 'https://proxy.dandaedre.com/gitea/Dandaedre/WinDiagnostics/raw/branch/main/WindowsMaintenanceReport.ps1'))) -EventLogDays 30 -MaxEventErrors 250 ``` To save the resulting report in a specific directory: ```powershell -& ([scriptblock]::Create((irm 'https://proxy.dandaedre.com/gitea/Dandaedre/WinDiagnostics/raw/branch/main/home/beffroi/Downloads/WindowsMaintenanceReport.ps1'))) -OutputDirectory 'C:\Temp' +& ([scriptblock]::Create((irm 'https://proxy.dandaedre.com/gitea/Dandaedre/WinDiagnostics/raw/branch/main/WindowsMaintenanceReport.ps1'))) -OutputDirectory 'C:\Temp' ``` ## Local Usage @@ -184,7 +184,7 @@ Only use this technique with a repository and server that you trust. If you want to inspect the script before executing it, download it first: ```powershell -irm 'https://proxy.dandaedre.com/gitea/Dandaedre/WinDiagnostics/raw/branch/main/home/beffroi/Downloads/WindowsMaintenanceReport.ps1' -OutFile '.\WindowsMaintenanceReport.ps1' +irm 'https://proxy.dandaedre.com/gitea/Dandaedre/WinDiagnostics/raw/branch/main/WindowsMaintenanceReport.ps1' -OutFile '.\WindowsMaintenanceReport.ps1' ``` Then inspect it: