Write-Host "`nAuto-Update Configuration:" -ForegroundColor Cyan Write-Host "1. Auto-check for updates: $($config.AutoCheck)" Write-Host "2. Check interval (days): $($config.CheckIntervalDays)" Write-Host "3. Auto-download updates: $($config.AutoDownload)" Write-Host "4. Auto-install updates: $($config.AutoInstall)" Write-Host "5. Update channel: $($config.Channel)" Write-Host "6. Save and exit"
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
function Test-Administrator $currentUser = [Security.Principal.WindowsIdentity]::GetCurrent() $principal = New-Object Security.Principal.WindowsPrincipal($currentUser) return $principal.IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator) update powershell version
<# .SYNOPSIS Wrapper script with additional features for PowerShell update management. #> update powershell version