Tuesday, July 4, 2017

VBScript: Task Scheduler in Windows | Task On Startup

Create your own VBScript which will execute as scheduled time or at logon time. There are different settings which will give you more control on customization of schedule task.

Then open "Task Scheduler" and follow below screenshots:


Then click "Action" and "Create Task..."


Enter your task name


Click "Trigger" and modify settings


Click "Action" and modify settings


In "Program/script" field put:
C:\Windows\System32\CScript.exe

And In "Add arguments" field put:
//Nologo //B C:\tmp\MyStartup.vbs

This will run the VBScript every 1 hour.

Now if you want to run this script when an user login then you have to change the action to "At log on", so do following as screenshot below:



1 comment: