Skip to primary navigation Skip to content Skip to footer

Update Powershell Version ★ Premium Quality

$trigger = New-ScheduledTaskTrigger -Weekly -DaysOfWeek Sunday -At 3am

function Show-CurrentVersionInfo Write-Host "`nPowerShell Version Information:" -ForegroundColor Cyan Write-Host " Version: $($PSVersionTable.PSVersion)" Write-Host " Edition: $($PSVersionTable.PSEdition)" Write-Host " GitCommitId: $($PSVersionTable.GitCommitId)" Write-Host " OS: $($PSVersionTable.OS)" Write-Host " Platform: $($PSVersionTable.Platform)" update powershell version

catch Write-ColorOutput "Download failed: $_" "Red" return $false update powershell version

#endregion Functions