Conversation
## [0.5.1] - 2025-11-17 ### Fixed - Fixed bloatware removal printing duplicate messages on screen by removing redundant Write-Output calls - Improved admin elevation handling in Start.ps1 and Deploy.ps1 to prevent script crashes when not run as administrator
| # Ignore errors, version remains null | ||
| } | ||
| if (!$releaseTag) { | ||
| Write-Host "Failed to fetch latest release tag. Cannot proceed." -ForegroundColor Red |
Check warning
Code scanning / PSScriptAnalyzer
File 'Start.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. Warning
| } | ||
|
|
||
| # Print header | ||
| Write-Host "============================================================" -ForegroundColor Cyan |
Check warning
Code scanning / PSScriptAnalyzer
File 'Start.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. Warning
| # Print header | ||
| Write-Host "============================================================" -ForegroundColor Cyan | ||
| Write-Host " WinDeploy Deployment" -ForegroundColor Yellow | ||
| Write-Host " Windows Deployment Automation Toolkit" -ForegroundColor Yellow |
Check warning
Code scanning / PSScriptAnalyzer
File 'Start.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. Warning
| Write-Host "============================================================" -ForegroundColor Cyan | ||
| Write-Host " WinDeploy Deployment" -ForegroundColor Yellow | ||
| Write-Host " Windows Deployment Automation Toolkit" -ForegroundColor Yellow | ||
| Write-Host "============================================================" -ForegroundColor Cyan |
Check warning
Code scanning / PSScriptAnalyzer
File 'Start.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. Warning
| Write-Host " Windows Deployment Automation Toolkit" -ForegroundColor Yellow | ||
| Write-Host "============================================================" -ForegroundColor Cyan | ||
| if ($version) { | ||
| Write-Host "Version: $version" -ForegroundColor Green |
Check warning
Code scanning / PSScriptAnalyzer
File 'Start.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. Warning
| if ($version) { | ||
| Write-Host "Version: $version" -ForegroundColor Green | ||
| } | ||
| Write-Host "" |
Check warning
Code scanning / PSScriptAnalyzer
File 'Start.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. Warning
| $version = $version.Trim() | ||
| } | ||
| } catch { | ||
| Write-Host "Failed to fetch latest release. Please run Scripts\Deploy.ps1 manually." -ForegroundColor Red |
Check warning
Code scanning / PSScriptAnalyzer
File 'Start.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. Warning
[0.5.2] - 2025-11-18
Added
Changed
Fixed