aravind anche
asked on
running batch file when user logs in or system start up windows 10
Hello,
I have a batch file to run when user logs in.
location: c:\windows\custom
Methods tried: I created a shortcut and placed it in start up folder
Also created task in scheduler
Any suggestions?
I have a batch file to run when user logs in.
location: c:\windows\custom
Methods tried: I created a shortcut and placed it in start up folder
Also created task in scheduler
Any suggestions?
What is that the batch file does ?
ASKER
it run a reg file and powershell script stored in c:\windows
Those will change the taskbar.
unpin Microsoft edge and pin IE
Those will change the taskbar.
unpin Microsoft edge and pin IE
it has to be run on user login not system startup.
by default login scripts wait 5 minutes
Computer Configuration -> Administrative Templates -> System -> Group Policy -> Configure Login Script Delay = set it to disabled.
by default login scripts wait 5 minutes
Computer Configuration -> Administrative Templates -> System -> Group Policy -> Configure Login Script Delay = set it to disabled.
ASKER
Hello David,
Thanks for the response
I have set that to disabled.
Now i Have the batch file in c:\windows\taskbar.
And the batch file contains command to run reg key and power shell script.
Shall I add that batchfile in
User configuration>scripts>logo n
Logon:
Add > scriptname:"path\task.bat"
Do I need to include script parameters(cmd /c)
Regards
Thanks for the response
I have set that to disabled.
Now i Have the batch file in c:\windows\taskbar.
And the batch file contains command to run reg key and power shell script.
Shall I add that batchfile in
User configuration>scripts>logo
Logon:
Add > scriptname:"path\task.bat"
Do I need to include script parameters(cmd /c)
Regards
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hello David,
Is there any way to change that batch file to run once per user?
Thanks
Is there any way to change that batch file to run once per user?
Thanks