Answer the question
In order to leave comments, you need to log in
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
Batch file in autorun, which will check for the presence of guard.txt and create it at the end of its work?
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.
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 questionAsk a Question
731 491 924 answers to any question