schedule task batch file

Post your handy scripts here, or any requests for help in creating a script.
Forum rules
1. Try to give more than you take, when possible.
2. Always wrap code in
Code: Select all
 tags
so it doesn't wrap the lines, and for the one-click select all feature.

schedule task batch file

Postby davidtstanley » Mon Feb 03, 2014 10:26 pm

Ok, I was thinking about this for my shop and wanted to know if I could take the normal 3 scanners that we install on customers pc's (malwarebytes, sas, ccleaner) and have a batch file that will add them to the scheduled tasks. I know that 7 has xml files and xp has some other format for the task scheduler. If i was to add all these to xp vista 7 8 and 8.1 and export the xml files and post them up could someone give me a script that will decide on which ones to use for each program dependant on operating system. If I have everyone lost let me know.

thanks.
Dave
davidtstanley
 
Posts: 36
Joined: Fri Feb 15, 2013 10:32 pm

Re: schedule task batch file

Postby Nick » Tue Mar 11, 2014 12:31 pm

i'm lost. but scheduling tasks is a nifty idea for a d7II add-on I must say.
Author of d7x and other PC technician's tools. http://www.d7xTech.com

Image
User avatar
Nick
Site Admin
 
Posts: 2779
Joined: Mon Nov 19, 2012 7:54 pm

Re: schedule task batch file

Postby davidtstanley » Tue Mar 11, 2014 6:35 pm

Nick call me Ill clue u in to what i am speaking of when it comes to scheduling these programs and what im thinking. ill pm you my number if you have a few minutes. thanks.

dave
davidtstanley
 
Posts: 36
Joined: Fri Feb 15, 2013 10:32 pm

Re: schedule task batch file

Postby davidtstanley » Sun Mar 16, 2014 10:29 am

ok so lets see if i can explain this a bit better.

take super antispyware, malwarebytes, ccleaner install on computer.
Create batch file that will import a scheduled weekly or monthly scan into the scheduled tasks.
have batch file work on xp, vista 7 and 8 for all versions 32 and 64bit.

please help. lol. i hate batch files... does that make sense nick?
davidtstanley
 
Posts: 36
Joined: Fri Feb 15, 2013 10:32 pm

Re: schedule task batch file

Postby Nick » Sun Mar 16, 2014 10:54 am

problems with that are:

superantispyware must schedule it's own scan tasks, there are actually limitations on this and they have put a lot of effort into ensuring that people cannot specifically create scheduled tasks outside of their interface.

only malwarebytes PRO will be able to run a scan and terminate without user interaction.
Author of d7x and other PC technician's tools. http://www.d7xTech.com

Image
User avatar
Nick
Site Admin
 
Posts: 2779
Joined: Mon Nov 19, 2012 7:54 pm

Re: schedule task batch file

Postby davidtstanley » Sun Mar 16, 2014 11:26 am

well thats a bummer. so maybe someone else can chime in and give me another 2 programs that will be easily configured to run in task scheduler as ccleaner is and will work for minor clean up stuff.

we usually use
ccleaner
spybot depending on the system
malwarebytes
and superantispyware

we install these onto the customers pc. does anyone else have some programs that can replace malwarebytes and also sas and possibly spybot? that work as well as they do and can be used in this application?

thanks.
davidtstanley
 
Posts: 36
Joined: Fri Feb 15, 2013 10:32 pm

Re: schedule task batch file

Postby Xander » Mon Mar 17, 2014 1:30 am

Ccleaner supports command line parameters. Look them up and create a scheduled task.
MBAM Pro can schedule itself. I'm looking into exporting it schedule from the registry and importing it into fresh installs to speed things up.
SAS Pro can schedule itself.

Spybot might; no idea - haven't touched it since MBAM came out.
User avatar
Xander
 
Posts: 660
Joined: Fri Feb 08, 2013 6:08 pm
Location: Near Niagara Falls

Re: schedule task batch file

Postby davidtstanley » Mon Mar 17, 2014 9:19 am

thanks xander, didnt really want to go to the pro route since it would be for every customer we have. thats a bummer... oh well. it was a good try though.
davidtstanley
 
Posts: 36
Joined: Fri Feb 15, 2013 10:32 pm


Return to Automation / Scripting / Batch Files