Skip to content

VoidVolker/Windows-logon-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Windows Logon service

This service is able to run any application on user login screen. I spend several weeks to collect all solutions from internet into one working project. Using specific WinAPI calls this service collects info about logon session and using this info to run application in logon session. PR are welcome!

LogonApplication

How to use

  1. Download archive for your platform at Releases page

  2. Edit configuration file LogonService.exe.config:

    • OnLogon, string - aplication to run at logon screen (mode: immediately restart app if it die)
    • LogEnabled, bool - turn on/off logging
    • LogPath, string - full file path to log file (default: exe dir/log.txt - not current dir, because for service it will be system32)
    • Description, string - service description
    • DisplayName, string - service display name
    • ServiceName, string - service system level name (no spaces!)
  3. Install service in command line:

LogonService.exe /install

Available commands

  • -i /i -install /install - install and start service
  • -u /u -uninstall /uninstall - stop and uninstall service
  • -r /r -reinstall /reinstall - reinstall service
  • -start /start - start service
  • -stop /stop - stop service

Operating systems support

Windows XP SP3, 7, 8.1, 10, 11

Requirements

  • DotNet 4.5.1 for Windows XP
  • DotNet 4.8.1 for all other Windows versions

Sponsors

Big thanks to all open source software sponsors - you make this world better =)

  1. jazir555