K
K
Kusmich2017-10-24 12:42:23
Google Chrome
Kusmich, 2017-10-24 12:42:23

How to add a task to the scheduler via a bat script to launch the browser before logging?

Wrote bat which should add a task to launch the browser before logging. But the problem is that the script only adds a task if you add a schedule.
Script example:

@echo off
    schtasks /create /sc ONSTART /tn "cwp" /tr "C:\Program Files 
    (x86)\Google\Chrome\Application\chrome.exe"

It is necessary that the script add a task to the scheduler, which should be executed just before logging.
If this option of launching the browser is not possible before the logging process, is it possible to somehow log in using the script itself?
The task is precisely that if the user wants to exit the program in this case of the browser, then he had to enter a username and password to enter the system. (All computers where this setting will be installed are on the same network, so I didn’t want a user who doesn’t have a login password to log into the system and do something there) But the application itself should start automatically when Windows starts.
Perhaps something was not taken into account in the script, or can the problem be solved in a different plane?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
res2001, 2017-10-24
@res2001

Set the browser as the user's shell (the default shell is explorer.exe).
PS: Logging is synonymous with logging.
Hard to understand what you mean.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question