V
V
vTanke2015-03-12 13:24:38
Command line
vTanke, 2015-03-12 13:24:38

How to execute bat file on first login of each user in Windows 7 Pro?

There is Win7Pro. I create several accounts on it and I want each user to run a specific bat-file on the first login to it, but not on subsequent logins. How to implement?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
V
Vladimir Martyanov, 2015-03-12
@vilgeforce

Batch file in autorun, which will check for the presence of guard.txt and create it at the end of its work?

3
386DX, 2015-03-12
@386DX

task scheduler start bat

D
Denis Verbin, 2015-03-12
@rez0n

As an option.
1. In the Default profile from which all profiles are created, place this batch file in the autostart directory.
2. In the scheduler, create a task that will delete this %UserDocs%/script.bat file from the user when he logs in.
In theory, it should turn out so that the first time the script will work and when the login process is completed, the scheduler will work.

M
Mikhail Ivanov, 2015-03-13
@Mikhael1979

Open the registry file NTUSER.DAT from the default profile and place a link to the required batch file in the Software\Microsoft\Windows\CurrentVersion\RunOnce section. Everything.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question