Add App To - Start Up Windows 11 Updated
$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
"4" Write-Host "`n📁 Startup Folder:" -ForegroundColor Cyan Get-ChildItem ([Environment]::GetFolderPath("Startup")) add app to start up windows 11
"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 via Registry (hidden startup)" Write-Host "3
"2" $appPath = Pick-AppPath if (-not $appPath) Write-Host "No file selected." -ForegroundColor Red; exit $regPath = "HKCU:\Software\Microsoft\Windows\CurrentVersion\Run" $name = Read-Host "Enter a name for this startup entry (e.g., MyApp)" Set-ItemProperty -Path $regPath -Name $name -Value "`"$appPath`"" Write-Host "✅ Added to Registry (hidden startup – not in Task Manager startup list)" -ForegroundColor Green 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 Out-Null return $openFileDialog.FileName 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 "========================================"
switch ($choice) "1" $appPath = Pick-AppPath if (-not $appPath) Write-Host "No file selected." -ForegroundColor Red; exit
$choice = Read-Host "Choose option (1-4)"