Skip to content

Instantly share code, notes, and snippets.

@psitem
psitem / Set-NotificationIconsVisible.ps1
Last active February 18, 2026 00:03
Sets all Windows Taskbar Notification Icons to Visible. Should probably be in a Scheduled Task set to run 'At log on' and 'Repeat task every: 1 hour'
$basePath = 'HKCU:\Control Panel\NotifyIconSettings\'
Get-ChildItem -Path $basePath | `
ForEach-Object { Get-ItemProperty "$basePath$($_.PSChildName)" } | `
Set-ItemProperty -Name 'IsPromoted' -Value 1
@qcomer
qcomer / Win_Invoke-Windows11Upgrade.ps1
Last active May 3, 2025 23:14
Windows 11 in-place Upgrade
$DownloadURL = 'https://software.download.prss.microsoft.com/dbazure/Win11_22H2_English_x64v1.iso?t=31269611-3f82-4aed-8fab-0866c801dd49&e=1671145901&h=009162fd66175743b0b11a52c362e70368b79a7656197dfff0ac7dda97764576'
$FolderPath = 'C:\Windows11Upgrade'
$FileName = 'Win11_22H2_English_x64v1.iso'
$LogFileName = Join-Path "$FolderPath" -ChildPath "Windows11install-$($(Get-Date).ToString('yyyyMMdd_HHmmss')).log"
function Write-Log ($message) {
$timestamp = (Get-Date).ToString('yyyy-MM-dd HH:mm:ss UTCz')
Add-Content -Path "$LogFileName" -Value "$timestamp - $message" -Force
}
Write-Output "Log file can be found here: $LogFileName"
if ($PSVersionTable.PSVersion.Major -lt 5) {