Setup auto-login
- Open Start menu/Search
- Search for and open regedit
- Navigate to HKEY_LOCAL_MACHINE/Software/Microsoft/Window NT/CurrentVersion/Winlogon
- Create or edit DefaultUserName (string) and set it to your username to run plex under
- Create or edit DefaultPassword (string) and set it to the password for the default user
- Create or edit AutoAdminLogon (string) and set it to 1
- Reboot to test if the auto login is working
Auto locking after login
- Open notepad as administrator
- Copy: rundll32.exe user32.dll,LockWorkStation
- Save as /Program Files/lock.bat (change file type to all files)
- Open group policy editor by searching for gpedit
- Navigate to Uesr Configuration/Windows Settings/Scripts (Log on/Log off)
- Double click Logon then click add
- Brows for the script located at /Program Files/lock.bat and click ok
- Reboot to test that the computer locks after logon