Task Schedular VBScript to generate a Message Pop-up - vbscript

I need to create a task made in Vb Script for Windows Vista & Windows 7 that will show a message pop-up to the user. That task will run every Monday and Friday at 9am. The message window should contain 2 button (Yes/No). For Yes->Open a web-link and No->Exit.
I found some information on internet but that is all about starting a program like Notepad.
Example: http://msdn.microsoft.com/en-us/library/aa394601%28v=vs.85%29.aspx.
I am not able to find how to generate a message popup along with buttons.
Can anyone help ? Thanks.

choice = msgbox( " That task will run every Monday and Friday at 9am ", 3, "test ")
this should give you " yes, no and cancel " options.

Related

Windows 10 Task Scheduler tasks don't even try to run

I am trying to get a task in windows scheduler to run every 10 mins.
In the following image there are two blue lines, this is only one task but I have screenshot them at different times after refreshing the page.
As you can see in the image Task Scheduler, on the bottom blue line under last run time it says 3:37pm and next run time is 5:02pm. then on the top blue line I have a screenshot the same task after 5:02pm, it hasn't updated the last run time but it has pushed the next run time forward 10 mins.
If I right mouse click on the task and manually run it, it works. Its just the timer functionality of task scheduler that isn't working, I'm guessing i have misconfigured it somehow.
These are the options I have set, everything else is on it's default value.
Trigger
Daily
Recur every 1 day
Start today
Repeat task every 10 mins
for a duration of indefinitely
Expire tomorrow
Enabled
Conditions
Do not Start task only on AC
Wake the computer to start the task
Settings
Run task as soon as possible after scheduled start is missed
My question, What do I need to change to make this actually run every 10 mins.
Evidence of me searching before posting.
Task Scheduler Not Running Batch File I don't use a start path.
Batch file runs manually but not through Windows 10 Task Scheduler I'm not running over the network but I did elevate privs, even though my program doesn't write any files.
Running PowerShell in Task Scheduler Doesn't mention timer functionality only action functionality.
Task Scheduler failed to start. Additional Data: Error Value: 2147943726 I'm not trying to run while I'm logged out and I'm not getting this error message.
I found that when I changed the 'interval' from 'indefinitely' to '1 day', it started to works

2016 Task Scheduler Only Runs the first action in the list

I have a simple Task Schedule job that runs a program 6 times, sending to it a different Argument each time.
This has been working well for some years, but on 2016 Server it only runs the first action and then it stops.
Any ideas of a fix? I have looked on google for all fixes etc, but they haven't worked and seem to be for 2017 and back
Based on my past experience, this behavior could caused by one of the following:
If your task targets a batch file of an executable file, try to check Windows Task Manager for that file running under "Processes" tab. Select each of your target batch/exe then End Process button. This may have caused by a seemed-to-stuck process but still on "Running" status.
On Task Scheduler, check for your task's "Last Run Result". This could be having code other than 0x0 (which is the successful run). If so, check for details under "History" tab below this pane.

Explain better the steps of officebackgroundtaskhandler.exe fast appear and dissapear issue?

I do have the steps, my Windows is in french but I can deduce what to click. It's just that I need more exact steps to guess better the translation and the idea:
Open Search Windows
What program to type ?
What to click in the program to see and change users ?
There are two scheduled tasks un Task Scheduler
Quoted from Costas2 in April 2017,
Library/Microsoft/Office:
OfficeBackgroundTaskHandlerLogon that runs when a user logs on and
OfficeBackgroundTaskHandlerRegistration that runs every hour
Both were set to run under the "Users" account group. Since I didn't
notice any popup at logon, I set
OfficeBackgroundTaskHandlerRegistration to run under the "System"
account and the hourly popups are now hidden. (Select the task, right
click, Properties, click on 'Change User Or Group', type 'System', OK
twice and voila.)
This is not the best solution from a security point of view, but until
MS fixes it, it works for me.
It's mostly for me to understand how to fix the Windows bugs without saying nonesense all the time, and in case there are other terminal windows types that opens all the time later. Windows said it already sent the fix to the bug: " The fix is now available in mainstream builds 16.8210.2075 released on 6/6/17 " So we don't need to do nothing, just wait. It's just that I was beginning to understand informatics and now I'm totally lost, I have no idea where to begin, neither how to follow the steps quoted.
Quote is from here:
OfficeBackgroundTaskHandlerRegistration flashes a window every hour (Microsoft Answers, 2017)
Update Microsoft Office. Open any Office 2016 app and choose:
File > Account > Update Options > Update
Source
Thanks for the answer: Fichier > Compte > Mises à jour pour Office (fr)
Although I won't do it, I found that on the net today, seems like it answers my question, just a quote found:
Kevin Angus replied to Steel Horn
‎05-31-2017 06:24 AM Re: OfficeBackgroundTaskHandlerRegistration
comman...
Open a DOS window enter Taskschd.msc OR open Control
Panel/Administrative Tools/Task Scheduler
Click to the left of Task Scheduler Library on the >
Click to the left of Microsoft on the >
Click on the Office folder
Click on the forth (4th) item down below Name in the center of the
window
Verify it is OfficeBackgroundTaskHandlerRegistration
Double Click the forth (4th) item to open the edit window
In Security options
Click on Change User or Group...
In the Enter the object name to select box enter system and click
Check Names
Click OK
Click OK
Quote found here: Microsoft's Techcommunity

Trigger windows Task Scheduler proccess few times a day between certain hours

im trying to achieve something but i dont really know how
I have set a new basic task in windows task scheduler and on the advanced settings im trying to set something specific.
I want my job to run between 7:00-23:59 every 3 hours
In other words, i dont want the job to run at night..
(I tried using the expire checkbox but i am not doing things right)
edited: i use Windows Server 2008 standard
Any help would be great..
Open the advanced properties for the task. Select the Triggers tab. Edit the trigger. Change the schedule to start at 07:00 and repeat the task every 3 hours for 17 hours (you have to type those figures in yourself).

VB.Net - Reminder - Startup

I have designed an application and I want this to run When ever I turn on my lap on and should execute some reminders which I have configured. I also need a "Snooze" and "Completed" button on the reminder. I want it to remind me for every 1 hour till I click "Finish" Button on the reminder.
Use Task Scheduler Service to schedule tasks.
For Visual Basic 6 you should use Task Scheduler Scripting Objects:
http://msdn.microsoft.com/en-us/library/windows/desktop/aa383607(v=vs.85).aspx

Resources