Windows Winlogon Shell & Kiro CLI Auto-Start Setup¶
1. Set Winlogon Shell to start.bat¶
Open regedit and navigate to:
Create or modify the Shell string value:
Or apply via command line (run as Administrator):
reg add "HKCU\Software\Microsoft\Windows NT\CurrentVersion\Winlogon" /v Shell /t REG_SZ /d "C:\Users\egugwen\start.bat" /f
Note: This overrides the default
explorer.exeshell for your user. Make surestart.batlaunches Explorer or anything else you need, e.g.:
2. Auto-Start kiro-cli from PowerShell Profile¶
Add the following to your PowerShell profile ($PROFILE, typically ~\Documents\PowerShell\Microsoft.PowerShell_profile.ps1):
function Start-KiroCli {
if (-not (Get-Process -Name "kiro-cli" -ErrorAction SilentlyContinue)) {
Start-Process "kiro-cli"
}
}
Start-KiroCli
If the profile file doesn't exist yet:
Revert Winlogon Shell to Default¶
This restores the default explorer.exe shell from the machine-level setting.