📎 AI Summary:
The thread discusses automating the launch of an application that requires login credentials upon system startup. The original poster seeks advice on whether a batch script can handle auto-login with credentials, and the responses suggest using startup scripts or scheduled tasks, noting the difficulty of passing credentials securely. The overall sentiment indicates that automating application login with different user credentials may require vendor support or alternative solutions.

WinAutomation

New Member
Joined
Mar 8, 2017
Messages
6
Thread Author #1
I have an application that needs to be launched automatically upon reboot.
The application has login and password, so I need to have a script to pass out the login info.
Please let me know if we can do it with .bat script and if you have an example.
Appreciate it!
 

Solution
Then you will want to run it as a scheduled task, on the general tab you can specify which account to run it as and under trigger you can make it trigger at startup.

Neemobeer

Windows Forum Team
Staff member
Joined
Jul 4, 2015
Messages
8,995
Start when the server starts or when someone logs in?
 

Neemobeer

Windows Forum Team
Staff member
Joined
Jul 4, 2015
Messages
8,995
The batch file could simple be
start <programpath>

You can add it to the startup group policy
  • Press [win key + r]
  • Type gpedit.msc
  • Computer Configuration > Windows Settings > Scripts > Startup
  • Click Add... navigate and select the script
  • Reboot and test
 

Neemobeer

Windows Forum Team
Staff member
Joined
Jul 4, 2015
Messages
8,995
This is literally all you need in the script.
An image from 'Launching Application on reboot'. Command Prompt running the command to start a new cmd.exe window.
 

Last edited by a moderator:

WinAutomation

New Member
Joined
Mar 8, 2017
Messages
6
Thread Author #7
Yes, but I need to pass out the login and password for the application I am launching..
 

Neemobeer

Windows Forum Team
Staff member
Joined
Jul 4, 2015
Messages
8,995
Then you will want to run it as a scheduled task, on the general tab you can specify which account to run it as and under trigger you can make it trigger at startup.
 

Solution

WinAutomation

New Member
Joined
Mar 8, 2017
Messages
6
Thread Author #9
I see ! One challenge I am seeing is that the login and password of the application is different from those of Windows account.
Should the login and password of the application and Windows account be the same?
 

Neemobeer

Windows Forum Team
Staff member
Joined
Jul 4, 2015
Messages
8,995
Ok then that probably won't work. May need to contact the vendor and see if there is a way to auto login the application.
 

WinAutomation

New Member
Joined
Mar 8, 2017
Messages
6
Thread Author #11
One way to get around is to make the Windows Account ID and password and the Application Login ID and password same.
It should work then?
 

Neemobeer

Windows Forum Team
Staff member
Joined
Jul 4, 2015
Messages
8,995
If the login is in the application it probably doesn't use windows authentication, so that wouldn't work. What application is it?