HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\StartupApproved\Run
. set-itemProperty ` HKCU:\Software\Microsoft\Windows\CurrentVersion\Run ` "some meaningful name" ` p:\ath\to\executable.exe
set-itemProperty ` HKCU:\Software\Microsoft\Windows\CurrentVersion\Run ` 'Windows Terminal' ` '%localappdata%\Microsoft\WindowsApps\wt.exe' ` -type expandString
ms-settings:startupapps
install-autorun.ps1
is a PowerShell script that adds a batch file to be executed when a user logs on, similarly to the set-itemProperty
example above.