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?
LVL 12
aravind ancheWindows/Vmware Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

DonNetwork AdministratorCommented:
What is that the batch file does ?
0
aravind ancheWindows/Vmware Author Commented:
it run a reg file and powershell script stored in c:\windows

Those will change the taskbar.
unpin Microsoft edge and pin IE
0
David Johnson, CD, MVPOwnerCommented:
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.
0
Build an E-Commerce Site with Angular 5

Learn how to build an E-Commerce site with Angular 5, a JavaScript framework used by developers to build web, desktop, and mobile applications.

aravind ancheWindows/Vmware Author Commented:
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>logon
Logon:
Add > scriptname:"path\task.bat"
Do I need to include script parameters(cmd /c)

Regards
0
David Johnson, CD, MVPOwnerCommented:
task.bat / task.cmd should just work
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
aravind ancheWindows/Vmware Author Commented:
Hello David,

Is there any way to change that batch file to run once per user?

Thanks
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows OS

From novice to tech pro — start learning today.