Add App To Start Up Windows 11 -
<# .SYNOPSIS Add any application to Windows 11 Startup (Current User or All Users) .DESCRIPTION Creates a startup shortcut in the appropriate Startup folder or adds a registry entry for silent background apps. #> function Pick-AppPath Add-Type -AssemblyName System.Windows.Forms $openFileDialog = New-Object System.Windows.Forms.OpenFileDialog $openFileDialog.Title = "Select the application to add to startup" $openFileDialog.Filter = "Executable files ( .exe) Main menu Write-Host "========================================" -ForegroundColor Cyan Write-Host " Add App to Windows 11 Startup" -ForegroundColor White Write-Host "========================================" -ForegroundColor Cyan Write-Host "1. Add app via Startup Folder (visible in Task Manager)" Write-Host "2. Add app via Registry (hidden startup)" Write-Host "3. Remove an app from startup" Write-Host "4. List current startup apps" Write-Host "========================================"
"3" Format-List $deleteName = Read-Host "Enter exact name of entry to delete (from registry) OR leave empty to delete from folder" if ($deleteName) Remove-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Run" -Name $deleteName -ErrorAction SilentlyContinue Write-Host "✅ Removed from registry startup." -ForegroundColor Green else $shortcutToDelete = Read-Host "Enter shortcut filename (from startup folder)" $folderPath = [Environment]::GetFolderPath("Startup") Remove-Item "$folderPath\$shortcutToDelete" -ErrorAction SilentlyContinue Write-Host "✅ Removed from startup folder." -ForegroundColor Green add app to start up windows 11
switch ($choice) "1" $appPath = Pick-AppPath if (-not $appPath) Write-Host "No file selected." -ForegroundColor Red; exit Add app via Registry (hidden startup)" Write-Host "3
$startupFolder = [Environment]::GetFolderPath("Startup") $shortcutPath = Join-Path $startupFolder "$([System.IO.Path]::GetFileNameWithoutExtension($appPath)).lnk" $WScriptShell = New-Object -ComObject WScript.Shell $shortcut = $WScriptShell.CreateShortcut($shortcutPath) $shortcut.TargetPath = $appPath $shortcut.WorkingDirectory = [System.IO.Path]::GetDirectoryName($appPath) $shortcut.Save() Write-Host "✅ Added to startup (visible in Task Manager > Startup apps)" -ForegroundColor Green add app to start up windows 11
$choice = Read-Host "Choose option (1-4)"