File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616 shell : [pwsh, powershell]
1717 admin : [true, false]
1818 locale : [en-US, de-DE]
19- name : Env : ${{ matrix.os }} | Shell: ${{ matrix.shell }} | Admin: ${{ matrix.admin }} | Locale: ${{ matrix.locale }}
19+ name : " env : ${{ matrix.os }} | Shell: ${{ matrix.shell }} | Admin: ${{ matrix.admin }} | Locale: ${{ matrix.locale }}"
2020 steps :
2121 - name : Checkout repo
2222 uses : actions/checkout@v4
@@ -27,17 +27,19 @@ jobs:
2727 shell : powershell
2828 continue-on-error : true
2929
30+
3031 - name : Run as admin (if required)
3132 if : ${{ matrix.admin == 'true' }}
3233 run : |
33- Start-Process -FilePath ${{ matrix.shell }} -ArgumentList '-NoProfile -ExecutionPolicy Bypass -File windows-telemetry-blocker .ps1 -dryrun' -Verb RunAs
34+ Start-Process -FilePath ${{ matrix.shell }} -ArgumentList '-NoProfile -ExecutionPolicy Bypass -File rls-script .ps1 -dryrun' -Verb RunAs
3435 shell : powershell
3536 continue-on-error : true
3637
38+
3739 - name : Run as non-admin (if required)
3840 if : ${{ matrix.admin == 'false' }}
3941 run : |
40- ${{ matrix.shell }} -NoProfile -ExecutionPolicy Bypass -File windows-telemetry-blocker .ps1 -dryrun
42+ ${{ matrix.shell }} -NoProfile -ExecutionPolicy Bypass -File rls-script .ps1 -dryrun
4143 shell : powershell
4244 continue-on-error : true
4345
4951 telemetry-blocker.log
5052 telemetry-blocker-errors.log
5153 telemetry-blocker-report.md
52- if-no-files-found : ignore
Original file line number Diff line number Diff line change @@ -43,34 +43,38 @@ jobs:
4343 }
4444 }
4545
46+
4647 - name : Check for Restore Point Creation
4748 shell : pwsh
4849 run : |
49- $main = Get-Content windows-telemetry-blocker .ps1 -Raw
50+ $main = Get-Content rls-script .ps1 -Raw
5051 if ($main -notmatch 'Checkpoint-Computer') {
5152 throw "Restore point creation (Checkpoint-Computer) missing in main script!"
5253 }
5354
55+
5456 - name : Check for Dry-Run Mode
5557 shell : pwsh
5658 run : |
57- $main = Get-Content windows-telemetry-blocker .ps1 -Raw
59+ $main = Get-Content rls-script .ps1 -Raw
5860 if ($main -notmatch 'dryrun') {
5961 throw "Dry-run mode not found in main script!"
6062 }
6163
64+
6265 - name : Check for Logging
6366 shell : pwsh
6467 run : |
65- $main = Get-Content windows-telemetry-blocker .ps1 -Raw
68+ $main = Get-Content rls-script .ps1 -Raw
6669 if ($main -notmatch 'Write-Log') {
6770 throw "Logging (Write-Log) not found in main script!"
6871 }
6972
73+
7074 - name : Check for User Prompts Before Destructive Actions
7175 shell : pwsh
7276 run : |
73- $main = Get-Content windows-telemetry-blocker .ps1 -Raw
77+ $main = Get-Content rls-script .ps1 -Raw
7478 if ($main -notmatch 'Read-Host') {
7579 Write-Host "[WARNING] No user prompt (Read-Host) found in main script. Ensure destructive actions are confirmed."
7680 }
Original file line number Diff line number Diff line change 9494 - name : Check Script Version Banner
9595 shell : pwsh
9696 run : |
97- $main = Get-Content windows-telemetry-blocker .ps1 -Raw
97+ $main = Get-Content rls-script .ps1 -Raw
9898 if ($main -notmatch 'Script Version:') {
99- throw "Script version banner missing in windows-telemetry-blocker .ps1"
99+ throw "Script version banner missing in rls-script .ps1"
100100 }
You can’t perform that action at this time.
0 commit comments