Start Up Windows 11 | Add App To

Start Up Windows 11 | Add App To

$choice = Read-Host "Choose option (1-4)"

"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

"4" ForEach-Object Write-Host " - $($_.Name)" Write-Host "`n📝 Registry Run (Current User):" -ForegroundColor Cyan $regItems = Get-ItemProperty "HKCU:\Software\Microsoft\Windows\CurrentVersion\Run" $regItems.PSObject.Properties $choice = Read-Host "Choose option (1-4)" "2" $appPath

switch ($choice) "1" $appPath = Pick-AppPath if (-not $appPath) Write-Host "No file selected." -ForegroundColor Red; exit Startup apps)" -ForegroundColor Green

"3" Select-Object * -ExcludeProperty PS*

$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